|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
java.security.Provider
java.security.AuthProvider
com.ibm.crypto.pkcs11impl.provider.IBMPKCS11Impl
public final class IBMPKCS11Impl
Defines the "IBMPKCS11Impl" provider. Supports algorithms that the configured card supports with in the following limits: This provider only supports the following algorithms. It is possible that the configured card supports more than this: This provider only supports the following algorithms. It is possible that the configured card supports more than this: - MD2 - MD5 - SHA1 SHA256 SHA384 SHA512 - MD2withRSA - MD5withRSA - SHA1withRSA - SHA1withDSA - DES - 3DES - AES - Blowfish - RC4 - RSA - DH Key agreement - HmacMD5 - HmacSHA1 HmacSHA256 HmacSHA384 HmacSHA512
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.security.Provider |
|---|
java.security.Provider.Service |
| Field Summary | |
|---|---|
protected com.ibm.crypto.pkcs11impl.provider.SessionManager |
sessionManager
|
| Fields inherited from class java.util.Properties |
|---|
defaults |
| Constructor Summary | |
|---|---|
IBMPKCS11Impl()
Creates the provider and expects that the current ACC contains a PKCS11Principal. |
|
IBMPKCS11Impl(java.io.BufferedReader in)
Creates the provider using the PKCS #11 library name and slot number. |
|
IBMPKCS11Impl(java.lang.String fullFileName)
Creates the provider using the PKCS #11 library name and slot number or via a configuration file (for example cryptoki.dll:0 or /usr/foo/config.card). |
|
| Method Summary | |
|---|---|
void |
close()
Closes all open session and cleans up crypto card resources. |
protected com.ibm.crypto.pkcs11impl.provider.Config |
getConfig()
|
com.ibm.crypto.pkcs11impl.provider.SessionManager |
getSessionManager()
|
void |
Init(java.io.BufferedReader in)
Creates or queries a PKCS11 session and than based on the session initializes what the provider can do. |
void |
Init(java.lang.String fullFileName,
char[] passwd)
Creates or queries a PKCS11 session and than based on the session initializes what the provider can do. |
void |
login(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler)
Log in to the hardware device for the associated session. |
void |
logout()
Log out from the associated session |
void |
removeSession()
Removes and closes the session that is currently associated with the provider. |
void |
setCallbackHandler(javax.security.auth.callback.CallbackHandler handler)
Sets the CallbackHandler for this provider. |
| Methods inherited from class java.security.Provider |
|---|
clear, entrySet, getInfo, getName, getService, getServices, getVersion, keySet, load, put, putAll, putService, remove, removeService, toString, values |
| Methods inherited from class java.util.Properties |
|---|
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
| Methods inherited from class java.util.Hashtable |
|---|
clone, contains, containsKey, containsValue, elements, equals, get, hashCode, isEmpty, keys, rehash, size |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected com.ibm.crypto.pkcs11impl.provider.SessionManager sessionManager
| Constructor Detail |
|---|
public IBMPKCS11Impl()
public IBMPKCS11Impl(java.lang.String fullFileName)
throws java.lang.Exception
java.lang.Exception
public IBMPKCS11Impl(java.io.BufferedReader in)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public com.ibm.crypto.pkcs11impl.provider.SessionManager getSessionManager()
protected com.ibm.crypto.pkcs11impl.provider.Config getConfig()
public void removeSession()
public void Init(java.io.BufferedReader in)
throws java.io.IOException
java.io.IOException
public void Init(java.lang.String fullFileName,
char[] passwd)
throws java.io.IOException
java.io.IOExceptionpublic void close()
Once this API is called, the provider has to be reinitialized to be useful.
public void login(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler)
throws javax.security.auth.login.LoginException
Get the PIN using the handler supplied by the caller. This
handler must support a PasswordCallback.
login in class java.security.AuthProvidersubject - this parameter is not usedhandler - the CallbackHandler used by to get the PIN from
the user.
javax.security.auth.login.LoginException - if the login operation is unsuccessful
java.lang.SecurityException - if the does not pass a security check for
SecurityPermission("authProvider.name"),
where name is the name of the provider.
public void logout()
throws javax.security.auth.login.LoginException
logout in class java.security.AuthProviderjavax.security.auth.login.LoginException - if the logout operation is not successful
java.lang.SecurityException - if the does not pass a security check for
SecurityPermission("authProvider.name"),
where name is the value the providers name.public void setCallbackHandler(javax.security.auth.callback.CallbackHandler handler)
CallbackHandler for this provider.
The provider uses this handler if one is not passed in to the
login method. The provider also uses this handler if it
invokes login on behalf of callers.
setCallbackHandler in class java.security.AuthProviderhandler - a CallbackHandler for getting the
authentication information. This may be null
java.lang.SecurityException - if the caller does not have access to authProvider.
name ", where name is the value the
provider's name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||