public class CardType
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static CardType |
ACS |
static CardType |
AEPKEYPER |
static CardType |
AKIS |
static CardType |
AKIS_KK |
static CardType |
ALADDIN |
protected Application |
app |
static CardType |
ATIKHSM |
static CardType |
ATIKKG |
protected static java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
cardATRs |
static CardType |
CARDOS |
protected static java.util.Map<java.lang.String,CardType> |
cards |
static CardType |
DATAKEY |
static CardType |
DIRAKHSM |
static CardType |
GEMALTO |
static CardType |
GEMPLUS |
static java.lang.String |
JVM_BITSIZE |
static CardType |
KEYCORP |
protected java.lang.String |
libName |
protected java.lang.String |
libNamex32 |
protected java.lang.String |
libNamex64 |
protected java.lang.String |
name |
static CardType |
NCIPHER |
static CardType |
NETID |
static CardType |
OPENDNSSOFTHSM |
static CardType |
PROCENNEHSM |
static CardType |
SAFENET |
static CardType |
SAFESIGN |
static CardType |
SEFIROT |
protected boolean |
supportsWrapUnwrap |
protected ICardTemplate |
template |
protected java.lang.Class<? extends CardTemplate> |
templateClass |
static CardType |
TKART |
static CardType |
UNKNOWN |
static CardType |
UTIMACO |
static CardType |
UTIMACO_R2 |
Constructor and Description |
---|
CardType(java.lang.String aLibName,
java.lang.Class<? extends CardTemplate> aTemplateClass,
java.lang.String aName,
Application aApp)
Defines a card
|
CardType(java.lang.String aLibName,
java.lang.Class<? extends CardTemplate> aTemplateClass,
java.lang.String aName,
Application aApp,
boolean supportsWrapUnwrap) |
CardType(java.lang.String aLibName,
java.lang.String aName)
Defines a card
|
CardType(java.lang.String a32BitLibName,
java.lang.String a64BitLibName,
java.lang.Class<? extends CardTemplate> aTemplateClass,
java.lang.String aName,
Application aApp)
Defines a card
|
CardType(java.lang.String a32BitLibName,
java.lang.String a64BitLibName,
java.lang.Class<? extends CardTemplate> aTemplateClass,
java.lang.String aName,
Application aApp,
boolean supportsWrapUnwrap)
Defines a card
|
Modifier and Type | Method and Description |
---|---|
static void |
applyCardTypeConfig(java.util.List<CardTypeConfig> config)
This method either adds card type to known types
or updates current one according to CardTypeConfig.name
|
Application |
getApplication()
Returns application
|
ICardTemplate |
getCardTemplate() |
static CardType |
getCardType(java.lang.String aLibName)
Returns card type which recognized from lib name
|
static CardType |
getCardTypeFromATR(java.lang.String aATRHex,
Application aApp)
Returns card type which recognized from atr value and application
|
static CardType |
getCardTypeFromName(java.lang.String aCardName)
Returns card type which recognized from lib name
|
static CardType[] |
getCardTypes()
Returns all card types
|
java.lang.String |
getLibName()
Returns library name of card
|
java.lang.String |
getLibNamex32() |
java.lang.String |
getLibNamex64() |
java.lang.String |
getName()
Returns name of card
|
boolean |
isSupportsWrapUnwrap()
Returns template of card
|
static void |
main(java.lang.String[] args) |
void |
setSupportsWrapUnwrap(boolean supportsWrapUnwrap) |
java.lang.String |
toString()
Returns name of card as string
|
protected static java.util.Map<java.lang.String,CardType> cards
protected static java.util.Map<java.lang.String,java.util.List<java.lang.String>> cardATRs
public static final java.lang.String JVM_BITSIZE
public static final CardType AKIS
public static final CardType AKIS_KK
public static final CardType CARDOS
public static final CardType ACS
public static final CardType ALADDIN
public static final CardType DATAKEY
public static final CardType GEMPLUS
public static final CardType KEYCORP
public static final CardType NCIPHER
public static final CardType SAFESIGN
public static final CardType SEFIROT
public static final CardType AEPKEYPER
public static final CardType UTIMACO
public static final CardType UTIMACO_R2
public static final CardType TKART
public static final CardType ATIKKG
public static final CardType SAFENET
public static final CardType ATIKHSM
public static final CardType DIRAKHSM
public static final CardType OPENDNSSOFTHSM
public static final CardType PROCENNEHSM
public static final CardType NETID
public static final CardType UNKNOWN
public static final CardType GEMALTO
protected java.lang.String name
protected ICardTemplate template
protected java.lang.String libName
protected java.lang.String libNamex32
protected java.lang.String libNamex64
protected boolean supportsWrapUnwrap
protected java.lang.Class<? extends CardTemplate> templateClass
protected Application app
public CardType(java.lang.String aLibName, java.lang.String aName)
aLibName
- library name of card. For akisp11.dll it is akisp11aName
- name of the card. it is used for information.public CardType(java.lang.String aLibName, java.lang.Class<? extends CardTemplate> aTemplateClass, java.lang.String aName, Application aApp)
aLibName
- library name of card. For akisp11.dll it is akisp11aTemplateClass
- aName
- name of the card. it is used for information.public CardType(java.lang.String a32BitLibName, java.lang.String a64BitLibName, java.lang.Class<? extends CardTemplate> aTemplateClass, java.lang.String aName, Application aApp)
aTemplateClass
- aName
- name of the card. it is used for information.public CardType(java.lang.String a32BitLibName, java.lang.String a64BitLibName, java.lang.Class<? extends CardTemplate> aTemplateClass, java.lang.String aName, Application aApp, boolean supportsWrapUnwrap)
aTemplateClass
- aName
- name of the card. it is used for information.public CardType(java.lang.String aLibName, java.lang.Class<? extends CardTemplate> aTemplateClass, java.lang.String aName, Application aApp, boolean supportsWrapUnwrap)
public java.lang.String getLibNamex64()
public java.lang.String getName()
public java.lang.String getLibName()
public boolean isSupportsWrapUnwrap()
public void setSupportsWrapUnwrap(boolean supportsWrapUnwrap)
public ICardTemplate getCardTemplate()
public static CardType[] getCardTypes()
public static CardType getCardTypeFromATR(java.lang.String aATRHex, Application aApp)
aATRHex
- aApp
- public static CardType getCardType(java.lang.String aLibName)
aLibName
- public static CardType getCardTypeFromName(java.lang.String aCardName)
aCardName
- public static void applyCardTypeConfig(java.util.List<CardTypeConfig> config)
config
- SmartCardConfigParser
public java.lang.String toString()
toString
in class java.lang.Object
public Application getApplication()
public static void main(java.lang.String[] args)
public java.lang.String getLibNamex32()
Copyright © 2025. All rights reserved.