-
public final class Credential
-
-
Field Summary
Fields Modifier and Type Field Description private final StringcredentialIdprivate final BooleanisResidentCredentialprivate final StringrpIdprivate final StringprivateKeyprivate final StringuserHandleprivate final IntegersignCountprivate final StringlargeBlob
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Booleancomponent2()final Stringcomponent3()final Stringcomponent4()final Stringcomponent5()final Integercomponent6()final Stringcomponent7()final Credentialcopy(String credentialId, Boolean isResidentCredential, String rpId, String privateKey, String userHandle, Integer signCount, String largeBlob)final StringgetCredentialId()final BooleangetIsResidentCredential()final StringgetRpId()Relying Party ID the credential is scoped to. final StringgetPrivateKey()The ECDSA P-256 private key in PKCS#8 format. final StringgetUserHandle()An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user. final IntegergetSignCount()Signature counter. final StringgetLargeBlob()The large blob associated with the credential. -
-
Method Detail
-
component1
final String component1()
-
component2
final Boolean component2()
-
component3
final String component3()
-
component4
final String component4()
-
component5
final String component5()
-
component6
final Integer component6()
-
component7
final String component7()
-
copy
final Credential copy(String credentialId, Boolean isResidentCredential, String rpId, String privateKey, String userHandle, Integer signCount, String largeBlob)
-
getCredentialId
final String getCredentialId()
-
getIsResidentCredential
final Boolean getIsResidentCredential()
-
getRpId
final String getRpId()
Relying Party ID the credential is scoped to. Must be set when adding a credential.
-
getPrivateKey
final String getPrivateKey()
The ECDSA P-256 private key in PKCS#8 format. (Encoded as a base64 string when passed over JSON)
-
getUserHandle
final String getUserHandle()
An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user. (Encoded as a base64 string when passed over JSON)
-
getSignCount
final Integer getSignCount()
Signature counter. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter
-
getLargeBlob
final String getLargeBlob()
The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension (Encoded as a base64 string when passed over JSON)
-
-
-
-