Save This Page
Home » openjdk-7 » sun.security » pkcs11 » [javadoc | source]
sun.security.pkcs11
public final class: SunPKCS11 [javadoc | source]
java.lang.Object
   java.util.Dictionary
      java.util.Hashtable
         java.util.Properties
            java.security.Provider
               java.security.AuthProvider
                  sun.security.pkcs11.SunPKCS11

All Implemented Interfaces:
    Map, Serializable, Cloneable

PKCS#11 provider main class.
Field Summary
static final  Debug debug     
final  PKCS11 p11     
final  Config config     
final  long slotID     
final  boolean removable     
final  Module nssModule     
final  boolean nssUseSecmodTrust     
Constructor:
 public SunPKCS11() 
 public SunPKCS11(String configName) 
 public SunPKCS11(InputStream configStream) 
 public SunPKCS11(String configName,
    InputStream configStream) 
    Method from sun.security.pkcs11.SunPKCS11 Summary:
    equals,   getToken,   hashCode,   login,   logout,   setCallbackHandler,   uninitToken,   verifySelfIntegrity
    Methods from java.security.AuthProvider:
    login,   logout,   setCallbackHandler
    Methods from java.security.Provider:
    clear,   elements,   entrySet,   get,   getInfo,   getName,   getProperty,   getService,   getServices,   getVersion,   keySet,   keys,   load,   put,   putAll,   remove,   toString,   values
    Methods from java.util.Properties:
    getProperty,   getProperty,   list,   list,   load,   load,   loadFromXML,   propertyNames,   save,   setProperty,   store,   store,   storeToXML,   storeToXML,   stringPropertyNames
    Methods from java.util.Hashtable:
    clear,   clone,   contains,   containsKey,   containsValue,   elements,   entrySet,   equals,   get,   hashCode,   isEmpty,   keySet,   keys,   put,   putAll,   remove,   size,   toString,   values
    Methods from java.util.Dictionary:
    elements,   get,   isEmpty,   keys,   put,   remove,   size
    Methods from java.lang.Object:
    equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
    Method from sun.security.pkcs11.SunPKCS11 Detail:
     public boolean equals(Object obj) 
     Token getToken() 
     public int hashCode() 
     public  void login(Subject subject,
        CallbackHandler handler) throws LoginException 
      Log in to this provider.

      If the token expects a PIN to be supplied by the caller, the handler implementation must support a PasswordCallback.

      To determine if the token supports a protected authentication path, the CK_TOKEN_INFO flag, CKF_PROTECTED_AUTHENTICATION_PATH, is consulted.

     public  void logout() throws LoginException 
      Log out from this provider
     public  void setCallbackHandler(CallbackHandler handler) 
      Set a CallbackHandler

      The provider uses this handler if one is not passed to the login method. The provider also uses this handler if it invokes login on behalf of callers. In either case if a handler is not set via this method, the provider queries the auth.login.defaultCallbackHandler security property for the fully qualified class name of a default handler implementation. If the security property is not set, the provider is assumed to have alternative means for obtaining authentication information.

     synchronized  void uninitToken(Token token) 
     static  void verifySelfIntegrity(Class c)