public interface Key
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
Gets the standard algorithm name for the key.
|
OTPGenerator |
getDefaultOTPGenerator()
Returns property for that key.
|
byte[] |
getEncoded()
Gets the key in its primary encoding format.
|
byte[] |
getEncoded(char[] password)
Gets the key in its primary encoding format.
|
String |
getFormat()
Gets the name of the primary encoding format of this key.
|
KeyId |
getId()
Gets the keyId associated with key.
|
OTPGenerator |
getOTPGenerator(String name)
Returns the OTP generator with specified name associated with a key.
|
String[] |
getOTPGeneratorNames()
Returns the list of supported OTP generators associated with the key.
|
char[] |
getProperty(String attribute)
Returns property for that key.
|
ProtectionPolicy |
getProtectionPolicy()
Gets the protection policy associated with key.
|
boolean |
isExtractable()
Returns true when the key is extractable.
|
KeyId getId()
ProtectionPolicy getProtectionPolicy() throws InternalException
InternalException - if an unexpected error occurred.char[] getProperty(String attribute) throws LostCredentialsException
attribute - attribute name
The property name may be any of the following:
KEY_PROPERTY_USAGE
KEY_PROPERTY_LABEL
KEY_PROPERTY_CREATE
KEY_PROPERTY_EXPIRYLostCredentialsException - if provisioning key data has been corrupted or lost.OTPGenerator getDefaultOTPGenerator() throws InternalException
InternalException - if an unexpected error occurred.OTPGenerator getOTPGenerator(String name) throws NotImplementedException
name - one of OTP generators names see getOTPGeneratorNames().NotImplementedException - if the operation is not implemented and reserved for future use.String[] getOTPGeneratorNames() throws NotImplementedException
NotImplementedException - if the operation is not implemented and reserved for future use.boolean isExtractable()
throws LostCredentialsException,
InternalException,
UnsupportedDeviceException
LostCredentialsException - if provisioning key data has been corrupted or lost.InternalException - if an unexpected error occurred.UnsupportedDeviceException - if device is not supported by policy.String getAlgorithm() throws InternalException, UnsupportedDeviceException, LostCredentialsException
InternalException - if an unexpected error occurred.UnsupportedDeviceException - if device is not supported by policy.LostCredentialsException - if provisioning key data has been corrupted or lost.String getFormat() throws InternalException, UnsupportedDeviceException, LostCredentialsException
InternalException - if an unexpected error occurred.UnsupportedDeviceException - if device is not supported by policy.LostCredentialsException - if provisioning key data has been corrupted or lost.byte[] getEncoded()
throws UnsupportedDeviceException,
AuthenticationException,
InvalidPasswordException,
LostCredentialsException,
InternalException,
FingerprintAuthenticationRequiredException,
FingerprintNotEnrolledException
UnsupportedDeviceException - if device is not supported by policy.AuthenticationException - if password is incorrect.InvalidPasswordException - if password validation fails.LostCredentialsException - if provisioning key data has been corrupted or lost.InternalException - if an unexpected error occurred.FingerprintAuthenticationRequiredException - if fingerprint authentication is required by policy.FingerprintNotEnrolledException - if fingerprint enrollment is required.byte[] getEncoded(char[] password)
throws UnsupportedDeviceException,
AuthenticationException,
InvalidPasswordException,
LostCredentialsException,
InternalException,
FingerprintAuthenticationRequiredException,
FingerprintNotEnrolledException,
PasswordRequiredException
password - the key password.UnsupportedDeviceException - if device is not supported by policy.AuthenticationException - if password is incorrect.InvalidPasswordException - if password validation fails.LostCredentialsException - if provisioning key data has been corrupted or lost.InternalException - if an unexpected error occurred.FingerprintAuthenticationRequiredException - if fingerprint authentication is required by policy.FingerprintNotEnrolledException - if fingerprint enrollment is required.PasswordRequiredException - if required password was not provided and cached password is not available.Copyright © 2005-2020 HID Global Corporation/ASSA ABLOY AB.