public interface TKTokenSessionDelegate
| Modifier and Type | Method and Description |
|---|---|
default TKTokenAuthOperation |
tokenSessionBeginAuthForOperationConstraintError(TKTokenSession session,
long operation,
java.lang.Object constraint,
org.moe.natj.general.ptr.Ptr<NSError> error)
Establishes a context for the requested authentication operation.
|
default NSData |
tokenSessionDecryptDataUsingKeyAlgorithmError(TKTokenSession session,
NSData ciphertext,
java.lang.Object keyObjectID,
TKTokenKeyAlgorithm algorithm,
org.moe.natj.general.ptr.Ptr<NSError> error)
Decrypts ciphertext using private key.
|
default NSData |
tokenSessionPerformKeyExchangeWithPublicKeyUsingKeyAlgorithmParametersError(TKTokenSession session,
NSData otherPartyPublicKeyData,
java.lang.Object objectID,
TKTokenKeyAlgorithm algorithm,
TKTokenKeyExchangeParameters parameters,
org.moe.natj.general.ptr.Ptr<NSError> error)
Performs Diffie-Hellman style key exchange operation.
|
default NSData |
tokenSessionSignDataUsingKeyAlgorithmError(TKTokenSession session,
NSData dataToSign,
java.lang.Object keyObjectID,
TKTokenKeyAlgorithm algorithm,
org.moe.natj.general.ptr.Ptr<NSError> error)
Performs cryptographic signature operation.
|
default boolean |
tokenSessionSupportsOperationUsingKeyAlgorithm(TKTokenSession session,
long operation,
java.lang.Object keyObjectID,
TKTokenKeyAlgorithm algorithm)
Checks whether specified operation and algorithm is supported on specified key.
|
default TKTokenAuthOperation tokenSessionBeginAuthForOperationConstraintError(TKTokenSession session, long operation, java.lang.Object constraint, org.moe.natj.general.ptr.Ptr<NSError> error)
session - Related TKTokenSession instance.operation - Identifier of the operation.constraint - Constraint to be satisfied by this authentication operation.error - Error details (see TKError.h).default NSData tokenSessionDecryptDataUsingKeyAlgorithmError(TKTokenSession session, NSData ciphertext, java.lang.Object keyObjectID, TKTokenKeyAlgorithm algorithm, org.moe.natj.general.ptr.Ptr<NSError> error)
session - Related TKTokenSession instance.ciphertext - Encrypted data to decrypt.keyObjectID - Identifier of the private key object.algorithm - Requested encryption/decryption algorithm to be used.error - Error details (see TKError.h). If authentication is required (by invoking beginAuthForOperation:), @c TKErrorCodeAuthenticationNeeded should be used.default NSData tokenSessionPerformKeyExchangeWithPublicKeyUsingKeyAlgorithmParametersError(TKTokenSession session, NSData otherPartyPublicKeyData, java.lang.Object objectID, TKTokenKeyAlgorithm algorithm, TKTokenKeyExchangeParameters parameters, org.moe.natj.general.ptr.Ptr<NSError> error)
session - Related TKTokenSession instance.otherPartyPublicKeyData - Raw public data of other party public key.objectID - Identifier of the private key object.algorithm - Requested key exchange algorithm to be used.parameters - Additional parameters for key exchange operation. Chosen algorithm dictates meaning of parameters.error - Error details (see TKError.h). If authentication is required (by invoking beginAuthForOperation:), @c TKErrorCodeAuthenticationNeeded should be used.default NSData tokenSessionSignDataUsingKeyAlgorithmError(TKTokenSession session, NSData dataToSign, java.lang.Object keyObjectID, TKTokenKeyAlgorithm algorithm, org.moe.natj.general.ptr.Ptr<NSError> error)
session - Related TKTokenSession instance.dataToSign - Input data for the signature operation.keyObjectID - Identifier of the private key object.algorithm - Requested signature algorithm to be used.error - Error details (see TKError.h). If authentication is required (by invoking beginAuthForOperation:), @c TKErrorCodeAuthenticationNeeded should be used.default boolean tokenSessionSupportsOperationUsingKeyAlgorithm(TKTokenSession session, long operation, java.lang.Object keyObjectID, TKTokenKeyAlgorithm algorithm)
session - Related TKTokenSession instance.operation - Type of cryptographic operation for which the list of supported algorithms should be retrieved.keyObjectID - Identifier of the private key object.algorithm - Algorithm with which the oepration should be performed.