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, wait
getATRHashes, getPKCS11Ops
protected java.security.MessageDigest OZET_ALICI
protected CardType cardType
protected IPKCS11Ops mIslem
public CardTemplate(CardType aCardType)
public CardType getCardType()
getCardType
in interface ICardTemplate
public 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 ICardTemplate
AsymmKeyTemplate
@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 ICardTemplate
AsymmKeyTemplate
@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 ICardTemplate
AsymmKeyTemplate
@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 ICardTemplate
AsymmKeyTemplate
@Deprecated public java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> getSecretKeyCreateTemplate(SecretKey aKey)
getSecretKeyCreateTemplate
in interface ICardTemplate
SecretKeyTemplate
@Deprecated public java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> getSecretKeyImportTemplate(SecretKey aKey)
getSecretKeyImportTemplate
in interface ICardTemplate
SecretKeyTemplate
public void applyTemplate(KeyPairTemplate template) throws SmartCardException
applyTemplate
in interface ICardTemplate
template
- SmartCardException
public void applyTemplate(SecretKeyTemplate template) throws SmartCardException
applyTemplate
in interface ICardTemplate
template
- SmartCardException
public java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> getCertificateTemplate(java.lang.String aLabel, java.security.cert.X509Certificate aCert)
getCertificateTemplate
in interface ICardTemplate
public static byte[] toByteArray(java.math.BigInteger aX)
public byte[] getPointValue(byte[] aDerEncodedPoint) throws java.io.IOException
getPointValue
in interface ICardTemplate
java.io.IOException
Copyright © 2025. All rights reserved.