Package org.webpki.keygen2
Class ServerState
java.lang.Object
org.webpki.keygen2.ServerState
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
class
class
static class
class
class
class
class
class
static enum
class
-
Constructor Summary
ConstructorDescriptionServerState
(ServerCryptoInterface serverCryptoInterface, String issuerUri, X509Certificate serverCertificate, String optionalServerSessionId) -
Method Summary
Modifier and TypeMethodDescriptionaddFeatureQuery
(String featureTypeUri) addImageAttributesQuery
(String imageTypeUri) void
addPostDeleteKey
(String oldClientSessionId, String oldServerSessionId, X509Certificate oldKey, PublicKey keyManagementKey) void
addPostUnlockKey
(String oldClientSessionId, String oldServerSessionId, X509Certificate oldKey, PublicKey keyManagementKey) addValuesQuery
(String valuesTypeUri) createDevicePINProtectedKey
(AppUsage appUsage, KeySpecifier keySpecifier) createKey
(AppUsage appUsage, KeySpecifier keySpecifier, ServerState.PINPolicy pinPolicy) createKeyWithPresetPIN
(AppUsage appUsage, KeySpecifier keySpecifier, ServerState.PINPolicy pinPolicy, byte[] pin) createPINPolicy
(PassphraseFormat format, int minLength, int maxLength, int retryLimit, ServerState.PUKPolicy pukPolicy) createPUKPolicy
(byte[] puk, PassphraseFormat format, int retryLimit) getDeviceIDString
(boolean longVersion) getImagePreference
(String imageTypeUri) getKeys()
String[]
getValuesCapability
(String valuesTypeUri) boolean
isFeatureSupported
(String featureTypeUri) static JSONDecoder
parseReceivedMessage
(byte[] json) void
setEphemeralKeyAlgorithm
(KeyAlgorithms ephemeralKeyAlgorithm) void
setPreferredLanguages
(String[] optionalLanguageList) void
setPrivacyEnabled
(boolean flag) void
setServiceSpecificObject
(String name, Object value) void
setTargetKeyContainerList
(KeyContainerTypes[] optionalKeyContainerList) void
update
(CredentialDiscoveryResponseDecoder credentialDiscoveryResponse) void
update
(InvocationResponseDecoder invocationResponse) void
update
(KeyCreationResponseDecoder keyCreationResponse) void
update
(ProvisioningFinalizationResponseDecoder provisioningFinalizationResponse) void
update
(ProvisioningInitializationResponseDecoder provisioningInitializationResponse)
-
Constructor Details
-
ServerState
public ServerState(ServerCryptoInterface serverCryptoInterface, String issuerUri, X509Certificate serverCertificate, String optionalServerSessionId)
-
-
Method Details
-
parseReceivedMessage
-
getKeys
-
getProtocolPhase
-
getImagePreference
-
getValuesCapability
-
isFeatureSupported
-
setPrivacyEnabled
public void setPrivacyEnabled(boolean flag) -
setEphemeralKeyAlgorithm
-
setPreferredLanguages
-
setTargetKeyContainerList
-
addFeatureQuery
-
addValuesQuery
-
addImageAttributesQuery
-
update
-
update
-
update
-
update
-
update
-
getDeviceCertificate
-
getDeviceIDString
-
getDeviceCertificatePath
-
addPostDeleteKey
public void addPostDeleteKey(String oldClientSessionId, String oldServerSessionId, X509Certificate oldKey, PublicKey keyManagementKey) -
addPostUnlockKey
public void addPostUnlockKey(String oldClientSessionId, String oldServerSessionId, X509Certificate oldKey, PublicKey keyManagementKey) -
getClientSessionId
-
getServerSessionId
-
createPINPolicy
public ServerState.PINPolicy createPINPolicy(PassphraseFormat format, int minLength, int maxLength, int retryLimit, ServerState.PUKPolicy pukPolicy) -
createPUKPolicy
-
createKeyWithPresetPIN
public ServerState.Key createKeyWithPresetPIN(AppUsage appUsage, KeySpecifier keySpecifier, ServerState.PINPolicy pinPolicy, byte[] pin) -
createKey
public ServerState.Key createKey(AppUsage appUsage, KeySpecifier keySpecifier, ServerState.PINPolicy pinPolicy) -
createDevicePINProtectedKey
-
setServiceSpecificObject
-
getServiceSpecificObject
-
generateEphemeralKey
-