Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jdesktop.swingx.auth
Class JAASLoginService

    java.lang.Object
      org.jdesktop.beans.AbstractBean
          org.jdesktop.swingx.auth.LoginService
              org.jdesktop.swingx.auth.JAASLoginService

    public class JAASLoginService

extends LoginService

JAASLoginService implements a LoginService that uses JAAS for authentication. JAASLoginService uses the server name as name of the configuration for JAAS.

Author:
  Bino George

Field Summary
`protected javax.security.auth.login.LoginContext` | `loginContext`

Constructor Summary
`JAASLoginService()` Default JavaBeans constructor
`JAASLoginService(java.lang.String server)` Constructor for JAASLoginService

Method Summary
`boolean` | `authenticate(java.lang.String name, char[] password, java.lang.String server)` This method is intended to be implemented by clients wishing to authenticate a user with a given password.
`javax.security.auth.login.LoginContext` | `getLoginContext()` Returns the `LoginContext` used during the authentication process.
`javax.security.auth.Subject` | `getSubject()` Returns the `Subject` representing the authenticated individual, or `null` if the user has not yet been successfully authenticated.

Methods inherited from class org.jdesktop.swingx.auth.LoginService
`addLoginListener, cancelAuthentication, getServer, getSynchronous, getUserRoles, removeLoginListener, setServer, setSynchronous, startAuthentication`

Methods inherited from class org.jdesktop.beans.AbstractBean
`addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### loginContext

    protected javax.security.auth.login.LoginContext loginContext

Constructor Detail

### JAASLoginService

    public JAASLoginService(java.lang.String server)

  Constructor for JAASLoginService

  Parameters:
    `server` - server name that is also used for the JAAS config name

### JAASLoginService

    public JAASLoginService()

  Default JavaBeans constructor

Method Detail

### authenticate

    public boolean authenticate(java.lang.String name,
                                char[] password,
                                java.lang.String server)
                         throws java.lang.Exception

  Description copied from class: `LoginService`
  This method is intended to be implemented by clients wishing to authenticate a user with a given password. Clients should implement the authentication in a manner that the authentication can be cancelled at any time.

  Specified by:
    `authenticate` in class `LoginService`
  Parameters:
    `name` - username
    `password` - password
    `server` - server (optional)
  Returns:
    `true` on authentication success
  Throws:
    `java.lang.Exception`

### getLoginContext

    public javax.security.auth.login.LoginContext getLoginContext()

  Returns the `LoginContext` used during the authentication process.

### getSubject

    public javax.security.auth.Subject getSubject()

  Returns the `Subject` representing the authenticated individual, or `null` if the user has not yet been successfully authenticated.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010. All Rights Reserved.