Package com.yubico.yubikit.oath
Class Credential
java.lang.Object
com.yubico.yubikit.oath.Credential
- All Implemented Interfaces:
Serializable
A reference to an OATH Credential stored on a YubiKey.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the name of the account (typically a username or email address).byte[]getId()Returns the ID of a Credential which is used to identify it to the YubiKey.@Nullable StringReturns the name of the Credential issuer (e.g.Returns the OATH type (HOTP or TOTP) of the Credential.intReturns the validity time period in seconds for a Code generated from this Credential.inthashCode()booleanReturns whether or not a user presence check (a physical touch on the sensor of the YubiKey) is required for calculating a Code from this Credential.
-
Method Details
-
getId
public byte[] getId()Returns the ID of a Credential which is used to identify it to the YubiKey. -
getOathType
Returns the OATH type (HOTP or TOTP) of the Credential. -
getIssuer
Returns the name of the Credential issuer (e.g. Google, Amazon, Facebook, etc.) -
getAccountName
Returns the name of the account (typically a username or email address). -
getPeriod
public int getPeriod()Returns the validity time period in seconds for a Code generated from this Credential. -
isTouchRequired
public boolean isTouchRequired()Returns whether or not a user presence check (a physical touch on the sensor of the YubiKey) is required for calculating a Code from this Credential. -
equals
-
hashCode
public int hashCode()
-