| Package | Description | 
|---|---|
| java.security | Provides the classes and interfaces for the security framework. | 
| javax.security.auth.login | This package provides a pluggable authentication framework. | 
| javax.security.auth.spi | This package provides the interface to be used for
 implementing pluggable authentication modules. | 
| javax.security.sasl | Contains class and interfaces for supporting SASL. | 
| Modifier and Type | Method and Description | 
|---|---|
| CallbackHandler | KeyStore.CallbackHandlerProtection. getCallbackHandler()Returns the CallbackHandler. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | AuthProvider. login(Subject subject,
     CallbackHandler handler)Log in to this provider. | 
| abstract void | AuthProvider. setCallbackHandler(CallbackHandler handler)Set a  CallbackHandler. | 
| Constructor and Description | 
|---|
| CallbackHandlerProtection(CallbackHandler handler)Constructs a new CallbackHandlerProtection from a
 CallbackHandler. | 
| Constructor and Description | 
|---|
| LoginContext(String name,
            CallbackHandler callbackHandler)Instantiate a new  LoginContextobject with a name
 and aCallbackHandlerobject. | 
| LoginContext(String name,
            Subject subject,
            CallbackHandler callbackHandler)Instantiate a new  LoginContextobject with a name,
 aSubjectto be authenticated, and aCallbackHandlerobject. | 
| LoginContext(String name,
            Subject subject,
            CallbackHandler callbackHandler,
            Configuration config)Instantiate a new  LoginContextobject with a name,
 aSubjectto be authenticated,
 aCallbackHandlerobject, and a loginConfiguration. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | LoginModule. initialize(Subject subject,
          CallbackHandler callbackHandler,
          Map<String,?> sharedState,
          Map<String,?> options)Initialize this LoginModule. | 
| Modifier and Type | Method and Description | 
|---|---|
| SaslClient | SaslClientFactory. createSaslClient(String[] mechanisms,
                String authorizationId,
                String protocol,
                String serverName,
                Map<String,?> props,
                CallbackHandler cbh)Creates a SaslClient using the parameters supplied. | 
| static SaslClient | Sasl. createSaslClient(String[] mechanisms,
                String authorizationId,
                String protocol,
                String serverName,
                Map<String,?> props,
                CallbackHandler cbh)Creates a  SaslClientusing the parameters supplied. | 
| static SaslServer | Sasl. createSaslServer(String mechanism,
                String protocol,
                String serverName,
                Map<String,?> props,
                CallbackHandler cbh)Creates a  SaslServerfor the specified mechanism. | 
| SaslServer | SaslServerFactory. createSaslServer(String mechanism,
                String protocol,
                String serverName,
                Map<String,?> props,
                CallbackHandler cbh)Creates a  SaslServerusing the parameters supplied. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.