Package org.webpki.sks
Class KeyProtectionInfo
java.lang.Object
org.webpki.sks.KeyProtectionInfo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
-
Constructor Summary
ConstructorDescriptionKeyProtectionInfo
(byte protectionStatus, byte pukFormat, short pukRetryLimit, short pukErrorCount, boolean userDefined, boolean userModifiable, byte format, short retryLimit, byte grouping, byte patternRestrictions, short minLength, short maxLength, byte inputMethod, short pinErrorCount, boolean enablePinCaching, byte biometricProtection, byte exportProtection, byte deleteProtection, byte keyBackup) -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte
short
short
short
short
boolean
boolean
short
short
byte
boolean
boolean
boolean
boolean
boolean
-
Field Details
-
PROTSTAT_NO_PIN
public static final byte PROTSTAT_NO_PIN- See Also:
-
PROTSTAT_PIN_PROTECTED
public static final byte PROTSTAT_PIN_PROTECTED- See Also:
-
PROTSTAT_PIN_BLOCKED
public static final byte PROTSTAT_PIN_BLOCKED- See Also:
-
PROTSTAT_PUK_PROTECTED
public static final byte PROTSTAT_PUK_PROTECTED- See Also:
-
PROTSTAT_PUK_BLOCKED
public static final byte PROTSTAT_PUK_BLOCKED- See Also:
-
PROTSTAT_DEVICE_PIN
public static final byte PROTSTAT_DEVICE_PIN- See Also:
-
KEYBACKUP_IMPORTED
public static final byte KEYBACKUP_IMPORTED- See Also:
-
KEYBACKUP_EXPORTED
public static final byte KEYBACKUP_EXPORTED- See Also:
-
-
Constructor Details
-
KeyProtectionInfo
public KeyProtectionInfo(byte protectionStatus, byte pukFormat, short pukRetryLimit, short pukErrorCount, boolean userDefined, boolean userModifiable, byte format, short retryLimit, byte grouping, byte patternRestrictions, short minLength, short maxLength, byte inputMethod, short pinErrorCount, boolean enablePinCaching, byte biometricProtection, byte exportProtection, byte deleteProtection, byte keyBackup) throws SKSException - Throws:
SKSException
-
-
Method Details
-
getSKSProtectionStatus
public byte getSKSProtectionStatus() -
hasLocalPukProtection
public boolean hasLocalPukProtection() -
getPukFormat
- Throws:
SKSException
-
getPukErrorCount
public short getPukErrorCount() -
getPukRetryLimit
public short getPukRetryLimit() -
isPukBlocked
public boolean isPukBlocked() -
hasLocalPinProtection
public boolean hasLocalPinProtection() -
getPinFormat
- Throws:
SKSException
-
getPinGrouping
- Throws:
SKSException
-
getPinMinLength
public short getPinMinLength() -
getPinMaxLength
public short getPinMaxLength() -
getPinUserModifiableFlag
public boolean getPinUserModifiableFlag() -
getPinUserDefinedFlag
public boolean getPinUserDefinedFlag() -
getPinInputMethod
-
isPinBlocked
public boolean isPinBlocked() -
hasDevicePinProtection
public boolean hasDevicePinProtection() -
getPinErrorCount
public short getPinErrorCount() -
getPinRetryLimit
public short getPinRetryLimit() -
getPatternRestrictions
-
getBiometricProtection
-
getKeyBackup
public byte getKeyBackup() -
getExportProtection
-
getDeleteProtection
-
getEnablePinCachingFlag
public boolean getEnablePinCachingFlag()
-