Package org.xipki.pkcs11.wrapper
Class KeyPairTemplate
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.KeyPairTemplate
-
public class KeyPairTemplate extends Object
Template pair for the private key and public key.- Author:
- Lijun Liao
-
-
Constructor Summary
Constructors Constructor Description KeyPairTemplate(long keyType)KeyPairTemplate(AttributeVector privateKey, AttributeVector publicKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyPairTemplatedecryptEncrypt(Boolean decryptEncrypt)KeyPairTemplatederive(Boolean derive)KeyPairTemplateendDate(Date endDate)byte[]id()KeyPairTemplateid(byte[] id)KeyPairTemplatekeyType(long keyType)KeyPairTemplatelabels(String label)KeyPairTemplatelabels(String privateKeyLabel, String publicKeyLabel)KeyPairTemplatelocal(Boolean local)KeyPairTemplatemodifiable(Boolean modifiable)KeyPairTemplateprivate_(Boolean private_)KeyPairTemplateprivate_(Boolean privateKeyPrivate, Boolean publicKeyPrivate)AttributeVectorprivateKey()AttributeVectorpublicKey()KeyPairTemplatesignVerify(Boolean signVerify)KeyPairTemplatesignVerifyRecover(Boolean signVerifyRecover)KeyPairTemplatestartDate(Date startDate)KeyPairTemplatesubject(byte[] subject)KeyPairTemplatetoken(Boolean token)StringtoString()KeyPairTemplateunwrapWrap(Boolean unwrapWrap)
-
-
-
Constructor Detail
-
KeyPairTemplate
public KeyPairTemplate(long keyType)
-
KeyPairTemplate
public KeyPairTemplate(AttributeVector privateKey, AttributeVector publicKey)
-
-
Method Detail
-
privateKey
public AttributeVector privateKey()
-
publicKey
public AttributeVector publicKey()
-
derive
public KeyPairTemplate derive(Boolean derive)
-
decryptEncrypt
public KeyPairTemplate decryptEncrypt(Boolean decryptEncrypt)
-
endDate
public KeyPairTemplate endDate(Date endDate)
-
id
public byte[] id() throws PKCS11Exception- Throws:
PKCS11Exception
-
id
public KeyPairTemplate id(byte[] id)
-
keyType
public KeyPairTemplate keyType(long keyType)
-
labels
public KeyPairTemplate labels(String label)
-
labels
public KeyPairTemplate labels(String privateKeyLabel, String publicKeyLabel)
-
local
public KeyPairTemplate local(Boolean local)
-
modifiable
public KeyPairTemplate modifiable(Boolean modifiable)
-
private_
public KeyPairTemplate private_(Boolean private_)
-
private_
public KeyPairTemplate private_(Boolean privateKeyPrivate, Boolean publicKeyPrivate)
-
signVerify
public KeyPairTemplate signVerify(Boolean signVerify)
-
signVerifyRecover
public KeyPairTemplate signVerifyRecover(Boolean signVerifyRecover)
-
startDate
public KeyPairTemplate startDate(Date startDate)
-
subject
public KeyPairTemplate subject(byte[] subject)
-
token
public KeyPairTemplate token(Boolean token)
-
unwrapWrap
public KeyPairTemplate unwrapWrap(Boolean unwrapWrap)
-
-