Class RegisteredCredential.RegisteredCredentialBuilder.MandatoryStages.Step3
- Enclosing class:
- RegisteredCredential.RegisteredCredentialBuilder.MandatoryStages
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpublicKeyCose
(ByteArray publicKeyCose) publicKeyCose
is a required parameter.publicKeyEs256Raw
(ByteArray publicKeyEs256Raw) Specify the credential public key in U2F format.
-
Constructor Details
-
Step3
public Step3()
-
-
Method Details
-
publicKeyCose
publicKeyCose
is a required parameter.The return value of
RegistrationResult.getPublicKeyCose()
is a suitable argument for this method.Alternatively, the public key can be specified using the
publicKeyEs256Raw(ByteArray)
method if the key is stored in the U2F format (ALG_KEY_ECC_X962_RAW
as specified in FIDO Registry §3.6.2 Public Key Representation Formats). This is mostly useful for public keys registered via the U2F JavaScript API. -
publicKeyEs256Raw
public RegisteredCredential.RegisteredCredentialBuilder publicKeyEs256Raw(ByteArray publicKeyEs256Raw) Specify the credential public key in U2F format.An alternative to
publicKeyCose(ByteArray)
, this method expects anES256
public key inALG_KEY_ECC_X962_RAW
format as specified in FIDO Registry §3.6.2 Public Key Representation Formats.This is primarily intended for public keys registered via the U2F JavaScript API. If your application has only used the
navigator.credentials.create()
API to register credentials, you should usepublicKeyCose(ByteArray)
instead.
-