Package com.tivoli.am.fim.fido.mediation
Class FIDO2Registration
- java.lang.Object
-
- com.tivoli.am.fim.fido.mediation.FIDO2Registration
-
public class FIDO2Registration extends java.lang.ObjectA FIDO registration.
-
-
Constructor Summary
Constructors Constructor Description FIDO2Registration(FIDORegistrationDefinition reg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAAGUID()return the AAGUID of the registrationbyte[][]getAttestationTrustPath()Get the trust path used to perform attestation.java.lang.StringgetAttestationType()Get the type of attestation performed during registrationjava.util.Map<java.lang.String,java.lang.String>getAttributes()Get the extra attributes of the registration associated when the registration was establishedlonggetCounter()Get the internal authenticator counter.longgetCreatedDate()Get the time the registration was registered in milliseconds since epochjava.lang.StringgetCredentialId()Get the credential ID as returned by the authenticator.java.lang.StringgetCredentialPublicKey()get the credential public key of the registration.java.lang.StringgetFormat()Get the attestation format provided during registrationjava.lang.StringgetFriendlyName()Get the friendly name, or nickname, of the registration.longgetLastUsed()Get the last time this registration was used to perform a successful authentication in milliseconds since epochjava.lang.StringgetMetadataDescription()Get the authenticator description from metadatajava.lang.StringgetMetadataIcon()Get the icon attribute from the metadata.java.lang.StringgetRpId()Get the relying party ID that this registration was registered to.java.util.List<java.lang.String>getTransports()Get the transports of this authenticator if providedjava.lang.StringgetUserId()Get the opaque user ID for this registration.java.lang.StringgetUsername()Get the Verify Access username for this registration.intgetVersion()Get the version of the registrationbooleanisEnabled()Is this registration enabledjava.lang.StringtoString()Get the registration as a JSON payload.booleanwasUserPresent()Get the value of the user-present bit during registrationbooleanwasUserVerified()Get the value of the user-verified bit during registration
-
-
-
Method Detail
-
getCredentialId
public java.lang.String getCredentialId()
Get the credential ID as returned by the authenticator.- Returns:
- a base64URL encoded string of the credential ID
-
getUserId
public java.lang.String getUserId()
Get the opaque user ID for this registration.- Returns:
- a UUID representing the user
-
getUsername
public java.lang.String getUsername()
Get the Verify Access username for this registration.- Returns:
- the username
-
getRpId
public java.lang.String getRpId()
Get the relying party ID that this registration was registered to.- Returns:
- the RP ID as a String
-
getFriendlyName
public java.lang.String getFriendlyName()
Get the friendly name, or nickname, of the registration.- Returns:
- the friendly name/nickname set during registration
-
getAAGUID
public java.lang.String getAAGUID()
return the AAGUID of the registration- Returns:
- the AAGUID as a UUID / null if no AAGUID is present
-
getCredentialPublicKey
public java.lang.String getCredentialPublicKey()
get the credential public key of the registration.- Returns:
- the public key as a base64URL encoded string
-
getFormat
public java.lang.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
public java.util.Map<java.lang.String,java.lang.String> 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
public java.lang.String 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
public java.lang.String toString()
Get the registration as a JSON payload. Can then be parsed byJSON.parseto get a native object- Overrides:
toStringin classjava.lang.Object
-
getMetadataIcon
public java.lang.String 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
public java.lang.String getMetadataDescription()
Get the authenticator description from metadata- Returns:
- null if no metadata was present for the authenticator
-
getTransports
public java.util.List<java.lang.String> getTransports()
Get the transports of this authenticator if provided- Returns:
- the list of transports or null if no transports are present for the registration
-
-