public class EmulatorP11Identity extends P11Identity
certificateChain, id, publicKey, slot| Constructor and Description |
|---|
EmulatorP11Identity(P11Slot slot,
P11IdentityId identityId,
PrivateKey privateKey,
PublicKey publicKey,
X509Certificate[] certificateChain,
int maxSessions,
SecureRandom random) |
EmulatorP11Identity(P11Slot slot,
P11IdentityId identityId,
SecretKey signingKey,
int maxSessions,
SecureRandom random) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
digestSecretKey0(long mechanism) |
protected byte[] |
sign0(long mechanism,
P11Params parameters,
byte[] content)
Signs the content.
|
certificateChain, compareTo, digestSecretKey, getCertificate, getId, getPublicKey, getSignatureKeyBitLength, match, match, setCertificates, sign, supportsMechanismpublic EmulatorP11Identity(P11Slot slot, P11IdentityId identityId, SecretKey signingKey, int maxSessions, SecureRandom random)
public EmulatorP11Identity(P11Slot slot, P11IdentityId identityId, PrivateKey privateKey, PublicKey publicKey, X509Certificate[] certificateChain, int maxSessions, SecureRandom random) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException
protected byte[] digestSecretKey0(long mechanism)
throws P11TokenException
digestSecretKey0 in class P11IdentityP11TokenExceptionprotected byte[] sign0(long mechanism,
P11Params parameters,
byte[] content)
throws P11TokenException
P11Identitysign0 in class P11Identitymechanism - mechanism to sign the content.parameters - Parameters. Could be null.content - Content to be signed. Must not be null.P11TokenException - if PKCS#11 token error occurs.Copyright © 2018. All rights reserved.