|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hardtokenmgmt.core.token.BaseToken
org.hardtokenmgmt.core.token.SetCos441InstantEIDToken
org.hardtokenmgmt.core.token.NetIdPrimeEIDLogonOnlyToken
public class NetIdPrimeEIDLogonOnlyToken
Implementation specific token class for PrimeCard (Siemens CardOS 4.3) cards with manly logon support.
| Field Summary |
|---|
| Fields inherited from class org.hardtokenmgmt.core.token.BaseToken |
|---|
MAXNUMOBJECTS, tokens |
| Fields inherited from interface org.hardtokenmgmt.core.token.IToken |
|---|
KEYALG_RSA, KEYTYPE_ALL, KEYTYPE_AUTH, KEYTYPE_ENC, KEYTYPE_SIGN, OBJECTTYPE_DATA, PINTYPE_BASIC, PINTYPE_SIGN |
| Constructor Summary | |
|---|---|
NetIdPrimeEIDLogonOnlyToken()
|
|
| Method Summary | |
|---|---|
void |
clearToken(java.lang.String[] pintypes,
java.lang.String[] puks)
Method to clear the content of a SetCos 441 card |
java.lang.String |
generatePUK(java.lang.String pintype)
Method generating one and the same PUK for all PIN types. |
java.util.Collection |
getCertificates(java.lang.String pintype)
Method that retrieves all certificates stored on the token. |
PINInfo |
getPINInfo(java.lang.String pintype)
Special method for NetId where a dummy trial login is done before the PIN status is checked. |
protected java.lang.String |
getPINLabel(iaik.pkcs.pkcs11.Token token,
java.lang.String pintype)
Method that should return the label of the tokens virtual slot that is associated with the given pintype. |
protected java.lang.String |
getPrivateKeyLabel(java.lang.String keytype)
Method that should find the right key label given the keytype. |
java.lang.String[] |
getSupportedPINTypes()
Method that should return the tokens supported PIN types Either PINTYPE_ constants or customdefined labels |
void |
initToken(java.lang.String tokenlabel,
java.lang.String tokenSerial,
java.lang.String[] pintypes,
java.lang.String[] pins,
java.lang.String[] puks)
Method that should initialize a token, cards that non-ereasable should clean the card as much as possible. |
boolean |
isTokenSupported(iaik.pkcs.pkcs11.Token token)
Labels indicating that the token cannot be reinitialized and should be cleaned instead. |
void |
removeCertificate(java.lang.String pintype,
java.lang.String pin,
java.lang.String basicpin,
java.security.cert.X509Certificate cert)
Method removing the specified certificate from the token. |
void |
removeKey(java.lang.String pintype,
java.lang.String pin,
java.lang.String basicpin,
java.lang.String label)
Method removing a specified key from a card |
boolean |
requirePUKInDB()
Method determining if the token requires the PUK to be uploaded to DB prior to initialization This is mainly for tokens that cannot be reformatted. |
PINInfo |
unblockPIN(java.lang.String pintype,
java.lang.String puk,
java.lang.String newpin)
Method that overloads the standard version and uses native calls instead. |
| Methods inherited from class org.hardtokenmgmt.core.token.SetCos441InstantEIDToken |
|---|
isInitialized |
| Methods inherited from class org.hardtokenmgmt.core.token.BaseToken |
|---|
addObject, blockPIN, changePIN, checkPIN, clearCertificateCache, downloadCert, downloadKeyStore, genKey, genPKCS10, getCertificate, getHardTokenSN, getKeyLabels, getObjects, getSlotId, init, reInitToken, removeAllKeys, removeObject, unlockPIN |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetIdPrimeEIDLogonOnlyToken()
| Method Detail |
|---|
public boolean isTokenSupported(iaik.pkcs.pkcs11.Token token)
throws iaik.pkcs.pkcs11.TokenException
isTokenSupported in interface ITokenisTokenSupported in class SetCos441InstantEIDTokentoken - the current token inserted into the slot.
iaik.pkcs.pkcs11.TokenException - if a pkcs11 related problem occurspublic java.lang.String[] getSupportedPINTypes()
IToken
getSupportedPINTypes in interface ITokengetSupportedPINTypes in class SetCos441InstantEIDToken
public void initToken(java.lang.String tokenlabel,
java.lang.String tokenSerial,
java.lang.String[] pintypes,
java.lang.String[] pins,
java.lang.String[] puks)
throws OperationNotSupportedException,
iaik.pkcs.pkcs11.TokenException
IToken
initToken in interface ITokeninitToken in class SetCos441InstantEIDTokentokenlabel - the label of the token, can be null if no token label should be set.tokenSerial - the serial number that should be written to the card, only used if the card
supports the serial number to be set during initialization otherwise could null be used.pintypes - an array of PINTYPE_contants or custom label strings. Indicates which key that should have
which PIN and PUKpins - an array of pin codes used in the initialization, should be used
with the keytype array get hold of key to use.
be defined in the getKeyIndex type.puks - an array of puk codes for each PIN
OperationNotSupportedException - if this operation or some of it's parameters isn't supported
iaik.pkcs.pkcs11.TokenException - for other token related failures.
public PINInfo unblockPIN(java.lang.String pintype,
java.lang.String puk,
java.lang.String newpin)
throws OperationNotSupportedException,
iaik.pkcs.pkcs11.TokenException
unblockPIN in interface ITokenunblockPIN in class BaseTokenpintype - one of the PINTYPE_ constantspuk - the PUK that should be used to unblocknewpin - the new PIN.
OperationNotSupportedException - if this operation or some of it's parameters isn't supported
iaik.pkcs.pkcs11.TokenException - for other token related failures.IToken.unblockPIN(String, String, String)
public void clearToken(java.lang.String[] pintypes,
java.lang.String[] puks)
throws OperationNotSupportedException,
iaik.pkcs.pkcs11.TokenException
clearToken in interface ITokenclearToken in class SetCos441InstantEIDTokenpintypes - optional parameter used by some cards with non-erasable filesystem and
needs the PUK code to erease some areas. Should contain an array of PINTYPE_contants
or custom label stringspuks - optional parameter used by some cards with non-erasable filesystem and
needs the PUK code to erease some areas.
OperationNotSupportedException - if this operation or some of it's parameters isn't supported
iaik.pkcs.pkcs11.TokenException - for other token related failures.
protected java.lang.String getPrivateKeyLabel(java.lang.String keytype)
throws OperationNotSupportedException
BaseToken
getPrivateKeyLabel in class SetCos441InstantEIDTokenkeytype - the keytype to find
OperationNotSupportedException
protected java.lang.String getPINLabel(iaik.pkcs.pkcs11.Token token,
java.lang.String pintype)
throws OperationNotSupportedException,
iaik.pkcs.pkcs11.TokenException
BaseToken
getPINLabel in class SetCos441InstantEIDTokenOperationNotSupportedException
iaik.pkcs.pkcs11.TokenException
public java.lang.String generatePUK(java.lang.String pintype)
throws OperationNotSupportedException
generatePUK in interface ITokengeneratePUK in class SetCos441InstantEIDTokenOperationNotSupportedException - if this method isn't supported by this token.IToken.generatePUK(String)
public boolean requirePUKInDB()
throws iaik.pkcs.pkcs11.TokenException
IToken
requirePUKInDB in interface ITokenrequirePUKInDB in class SetCos441InstantEIDTokeniaik.pkcs.pkcs11.TokenException - for other token related failures.IToken.requirePUKInDB()
public PINInfo getPINInfo(java.lang.String pintype)
throws OperationNotSupportedException,
iaik.pkcs.pkcs11.TokenException
getPINInfo in interface ITokengetPINInfo in class BaseTokenpintype - one of the PINTYPE_ constants
OperationNotSupportedException - if this operation or some of it's parameters isn't supported
iaik.pkcs.pkcs11.TokenException - for other token related failures.BaseToken.getPINInfo(java.lang.String)
public void removeCertificate(java.lang.String pintype,
java.lang.String pin,
java.lang.String basicpin,
java.security.cert.X509Certificate cert)
throws OperationNotSupportedException,
iaik.pkcs.pkcs11.TokenException
IToken
removeCertificate in interface ITokenremoveCertificate in class BaseTokenpintype - of the PIN needed to unlock the tokenpin - the pin to unlock (May not be required, then can null be used)basicpin - pin to unlock the basic area, might be used for signature certificates
OperationNotSupportedException - if this operation or some of it's parameters isn't supported
iaik.pkcs.pkcs11.TokenException - for other token related failures.IToken.removeCertificate(String, String, String, X509Certificate)
public void removeKey(java.lang.String pintype,
java.lang.String pin,
java.lang.String basicpin,
java.lang.String label)
throws OperationNotSupportedException,
iaik.pkcs.pkcs11.TokenException
IToken
removeKey in interface ITokenremoveKey in class BaseTokenpintype - of the PIN needed to unlock the tokenpin - the pin to unlock (May not be required, then can null be used)basicpin - pin to unlock the basic area, might be used for signature certificateslabel - of the key
OperationNotSupportedException - if this operation or some of it's parameters isn't supported
iaik.pkcs.pkcs11.TokenException - for other token related failures.IToken.removeKey(String, String, String, String)
public java.util.Collection getCertificates(java.lang.String pintype)
throws OperationNotSupportedException,
iaik.pkcs.pkcs11.TokenException
IToken
getCertificates in interface ITokengetCertificates in class BaseTokenpintype - of the PIN that are connected to the certificates
OperationNotSupportedException - if this operation isn't supported
iaik.pkcs.pkcs11.TokenException - for other token related failures.IToken.getCertificates(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||