public abstract class CardTemplate extends java.lang.Object implements ICardTemplate
| Modifier and Type | Field and Description |
|---|---|
protected CardType |
cardType |
protected IPKCS11Ops |
mIslem |
protected java.security.MessageDigest |
OZET_ALICI |
| Constructor and Description |
|---|
CardTemplate(CardType aCardType) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyTemplate(KeyPairTemplate template)
apply template into card with specific attributes
|
void |
applyTemplate(SecretKeyTemplate template)
apply template into card with specific attributes
|
CardType |
getCardType() |
java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> |
getCertificateTemplate(java.lang.String aLabel,
java.security.cert.X509Certificate aCert) |
java.util.List<java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE>> |
getCertSerialNumberTemplates(byte[] aSerialNumber) |
byte[] |
getPointValue(byte[] aDerEncodedPoint) |
java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> |
getRSAPrivateKeyCreateTemplate(java.lang.String aKeyLabel,
boolean aIsSign,
boolean aIsEncrypt)
Deprecated.
pls use applyTemplate with AsymmKeyTemplate
|
java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> |
getRSAPrivateKeyImportTemplate(java.lang.String aLabel,
java.security.interfaces.RSAPrivateCrtKey aPrivKey,
java.security.cert.X509Certificate aSertifika,
boolean aIsSign,
boolean aIsEncrypt)
Deprecated.
pls use applyTemplate with AsymmKeyTemplate
|
java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> |
getRSAPublicKeyCreateTemplate(java.lang.String aKeyLabel,
int aModulusBits,
java.math.BigInteger aPublicExponent,
boolean aIsSign,
boolean aIsEncrypt)
Deprecated.
pls use applyTemplate with AsymmKeyTemplate
|
java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> |
getRSAPublicKeyImportTemplate(java.lang.String aLabel,
java.security.interfaces.RSAPrivateCrtKey aPrivKey,
java.security.cert.X509Certificate aSertifika,
boolean aIsSign,
boolean aIsEncrypt)
Deprecated.
pls use applyTemplate with AsymmKeyTemplate
|
java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> |
getSecretKeyCreateTemplate(SecretKey aKey)
Deprecated.
pls use applyTemplate with SecretKeyTemplate
|
java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> |
getSecretKeyImportTemplate(SecretKey aKey)
Deprecated.
pls use applyTemplate with SecretKeyTemplate
|
static byte[] |
toByteArray(java.math.BigInteger aX) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetATRHashes, getPKCS11Opsprotected java.security.MessageDigest OZET_ALICI
protected CardType cardType
protected IPKCS11Ops mIslem
public CardTemplate(CardType aCardType)
public CardType getCardType()
getCardType in interface ICardTemplatepublic java.util.List<java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE>> getCertSerialNumberTemplates(byte[] aSerialNumber)
getCertSerialNumberTemplates in interface ICardTemplate@Deprecated
public java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> getRSAPrivateKeyCreateTemplate(java.lang.String aKeyLabel,
boolean aIsSign,
boolean aIsEncrypt)
getRSAPrivateKeyCreateTemplate in interface ICardTemplateAsymmKeyTemplate@Deprecated
public java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> getRSAPublicKeyCreateTemplate(java.lang.String aKeyLabel,
int aModulusBits,
java.math.BigInteger aPublicExponent,
boolean aIsSign,
boolean aIsEncrypt)
getRSAPublicKeyCreateTemplate in interface ICardTemplateAsymmKeyTemplate@Deprecated
public java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> getRSAPrivateKeyImportTemplate(java.lang.String aLabel,
java.security.interfaces.RSAPrivateCrtKey aPrivKey,
java.security.cert.X509Certificate aSertifika,
boolean aIsSign,
boolean aIsEncrypt)
getRSAPrivateKeyImportTemplate in interface ICardTemplateAsymmKeyTemplate@Deprecated
public java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> getRSAPublicKeyImportTemplate(java.lang.String aLabel,
java.security.interfaces.RSAPrivateCrtKey aPrivKey,
java.security.cert.X509Certificate aSertifika,
boolean aIsSign,
boolean aIsEncrypt)
getRSAPublicKeyImportTemplate in interface ICardTemplateAsymmKeyTemplate@Deprecated public java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> getSecretKeyCreateTemplate(SecretKey aKey)
getSecretKeyCreateTemplate in interface ICardTemplateSecretKeyTemplate@Deprecated public java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> getSecretKeyImportTemplate(SecretKey aKey)
getSecretKeyImportTemplate in interface ICardTemplateSecretKeyTemplatepublic void applyTemplate(KeyPairTemplate template) throws SmartCardException
applyTemplate in interface ICardTemplatetemplate - SmartCardExceptionpublic void applyTemplate(SecretKeyTemplate template) throws SmartCardException
applyTemplate in interface ICardTemplatetemplate - SmartCardExceptionpublic java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> getCertificateTemplate(java.lang.String aLabel,
java.security.cert.X509Certificate aCert)
getCertificateTemplate in interface ICardTemplatepublic static byte[] toByteArray(java.math.BigInteger aX)
public byte[] getPointValue(byte[] aDerEncodedPoint)
throws java.io.IOException
getPointValue in interface ICardTemplatejava.io.IOExceptionCopyright © 2025. All rights reserved.