Package com.tivoli.am.fim.fido.mediation
Class FIDO2Registration
java.lang.Object
com.tivoli.am.fim.fido.mediation.FIDO2Registration
A FIDO registration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreturn the AAGUID of the registrationbyte[][]
Get the trust path used to perform attestation.Get the type of attestation performed during registrationGet the extra attributes of the registration associated when the registration was establishedboolean
Get the value of the backup eligibility bit during registration.boolean
Get the value of the backup state bit during registration.long
Get the internal authenticator counter.long
Get the time the registration was registered in milliseconds since epochGet the credential ID as returned by the authenticator.get the credential public key of the registration.Get the attestation format provided during registrationGet the friendly name, or nickname, of the registration.long
Get the last time this registration was used to perform a successful authentication in milliseconds since epochGet the authenticator description from metadataGet the icon attribute from the metadata.getRpId()
Get the relying party ID that this registration was registered to.Get the transports of this authenticator if providedGet the opaque user ID for this registration.Get the Verify Identity Access username for this registration.int
Get the version of the registrationboolean
Is this registration enabledtoString()
Get the registration as a JSON payload.boolean
Get the value of the user-present bit during registrationboolean
Get the value of the user-verified bit during registration
-
Constructor Details
-
FIDO2Registration
public FIDO2Registration(FIDORegistrationDefinition reg)
-
-
Method Details
-
getCredentialId
Get the credential ID as returned by the authenticator.- Returns:
- a base64URL encoded string of the credential ID
-
getUserId
Get the opaque user ID for this registration.- Returns:
- a UUID representing the user
-
getUsername
Get the Verify Identity Access username for this registration.- Returns:
- the username
-
getRpId
Get the relying party ID that this registration was registered to.- Returns:
- the RP ID as a String
-
getFriendlyName
Get the friendly name, or nickname, of the registration.- Returns:
- the friendly name/nickname set during registration
-
getAAGUID
return the AAGUID of the registration- Returns:
- the AAGUID as a UUID / null if no AAGUID is present
-
getCredentialPublicKey
get the credential public key of the registration.- Returns:
- the public key as a base64URL encoded string
-
getFormat
Get the attestation format provided during registration- Returns:
- the format
-
wasUserPresent
public boolean wasUserPresent()Get the value of the user-present bit during registration- Returns:
- true: user present was set / false: user present was not set.
-
wasUserVerified
public boolean wasUserVerified()Get the value of the user-verified bit during registration- Returns:
- true: user verified was set / false: user verified was not set.
-
isEnabled
public boolean isEnabled()Is this registration enabled -
getCounter
public long getCounter()Get the internal authenticator counter. The counter is a basic mitigation against authenticator cloning attacks.- Returns:
- the authenticator counter as a number
-
getVersion
public int getVersion()Get the version of the registration- Returns:
- 1: This was a migrated u2f registration / 2: this was a webauthn registration
-
getAttributes
Get the extra attributes of the registration associated when the registration was established -
getLastUsed
public long getLastUsed()Get the last time this registration was used to perform a successful authentication in milliseconds since epoch -
getCreatedDate
public long getCreatedDate()Get the time the registration was registered in milliseconds since epoch -
getAttestationType
Get the type of attestation performed during registration -
getAttestationTrustPath
public byte[][] getAttestationTrustPath()Get the trust path used to perform attestation. May be an empty array in instances where attestation was not performed. -
toString
Get the registration as a JSON payload. Can then be parsed byJSON.parse
to get a native object -
getMetadataIcon
Get the icon attribute from the metadata. This may be a base64url encoded string suitable for usage in a image source attribute, or a URL- Returns:
- null if no device metadata was present, or no icon was present in the metadata
-
getMetadataDescription
Get the authenticator description from metadata- Returns:
- null if no metadata was present for the authenticator
-
getTransports
Get the transports of this authenticator if provided- Returns:
- the list of transports or null if no transports are present for the registration
-
getBackupEligibility
public boolean getBackupEligibility()Get the value of the backup eligibility bit during registration. A value of true means the public key credential source can to be backed up. A value of false means the public key credential source cannot be backed up.- Returns:
- boolean
-
getBackupState
public boolean getBackupState()Get the value of the backup state bit during registration. A value of true means the public key credential source is currently backed up. A value of false means the public key credential source is not currently backed up.- Returns:
- boolean
-