public class AkisTemplate extends CardTemplate
Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
ATR_HASHES |
protected static long |
CKA_SENSITIVE_EC_PARAMS |
static java.util.List<java.lang.String> |
HISTORICAL_BYTE_REGEXES |
protected static org.slf4j.Logger |
logger |
cardType, mIslem, OZET_ALICI
Constructor and Description |
---|
AkisTemplate(CardType aCardType)
Create Akis template
|
Modifier and Type | Method and Description |
---|---|
static void |
addATR(java.lang.String aATR)
Add ATR hash to template's hashes
|
void |
applyTemplate(KeyPairTemplate template)
apply template into card with specific attributes
|
java.lang.String[] |
getATRHashes()
Returns ATR hashes of template as string
|
java.util.List<java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE>> |
getCertSerialNumberTemplates(byte[] aSerialNumber) |
IPKCS11Ops |
getPKCS11Ops() |
java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> |
getRSAPublicKeyImportTemplate(java.lang.String aLabel,
java.security.interfaces.RSAPrivateCrtKey aPrivKey,
java.security.cert.X509Certificate aCert,
boolean aIsSign,
boolean aIsEncrypt) |
static boolean |
isAkisATR(java.lang.String atrHex) |
applyTemplate, getCardType, getCertificateTemplate, getPointValue, getRSAPrivateKeyCreateTemplate, getRSAPrivateKeyImportTemplate, getRSAPublicKeyCreateTemplate, getSecretKeyCreateTemplate, getSecretKeyImportTemplate, toByteArray
protected static org.slf4j.Logger logger
protected static long CKA_SENSITIVE_EC_PARAMS
public static java.util.List<java.lang.String> ATR_HASHES
public static java.util.List<java.lang.String> HISTORICAL_BYTE_REGEXES
public AkisTemplate(CardType aCardType)
aCardType
- public IPKCS11Ops getPKCS11Ops()
public static boolean isAkisATR(java.lang.String atrHex)
public java.util.List<java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE>> getCertSerialNumberTemplates(byte[] aSerialNumber)
getCertSerialNumberTemplates
in interface ICardTemplate
getCertSerialNumberTemplates
in class CardTemplate
public java.util.List<sun.security.pkcs11.wrapper.CK_ATTRIBUTE> getRSAPublicKeyImportTemplate(java.lang.String aLabel, java.security.interfaces.RSAPrivateCrtKey aPrivKey, java.security.cert.X509Certificate aCert, boolean aIsSign, boolean aIsEncrypt)
getRSAPublicKeyImportTemplate
in interface ICardTemplate
getRSAPublicKeyImportTemplate
in class CardTemplate
AsymmKeyTemplate
public void applyTemplate(KeyPairTemplate template) throws SmartCardException
CardTemplate
applyTemplate
in interface ICardTemplate
applyTemplate
in class CardTemplate
SmartCardException
public java.lang.String[] getATRHashes()
public static void addATR(java.lang.String aATR)
aATR
- StringCopyright © 2025. All rights reserved.