com.sun.xml.wss.impl.misc
Class DefaultRealmAuthenticationAdapter

java.lang.Object
  extended by com.sun.xml.wss.RealmAuthenticationAdapter
      extended by com.sun.xml.wss.impl.misc.DefaultRealmAuthenticationAdapter

public class DefaultRealmAuthenticationAdapter
extends RealmAuthenticationAdapter

Author:
kumar jayanti

Field Summary
 
Fields inherited from class com.sun.xml.wss.RealmAuthenticationAdapter
UsernameAuthenticator
 
Constructor Summary
DefaultRealmAuthenticationAdapter()
          Creates a new instance of DefaultRealmAuthenticationProvider
 
Method Summary
 boolean authenticate(Subject callerSubject, String username, String password)
           
 boolean authenticate(Subject callerSubject, String username, String passwordDigest, String nonce, String created)
           
protected  CallbackHandler loadGFHandler()
           
 
Methods inherited from class com.sun.xml.wss.RealmAuthenticationAdapter
authenticate, authenticate, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRealmAuthenticationAdapter

public DefaultRealmAuthenticationAdapter()
Creates a new instance of DefaultRealmAuthenticationProvider

Method Detail

authenticate

public boolean authenticate(Subject callerSubject,
                            String username,
                            String password)
                     throws XWSSecurityException
Specified by:
authenticate in class RealmAuthenticationAdapter
Parameters:
callerSubject - the callerSubject should contain the appropriate principal's of the caller after a successful authentication
username - the username
password - the password
Returns:
true if authentication succeeds
Throws:
XWSSecurityException

authenticate

public boolean authenticate(Subject callerSubject,
                            String username,
                            String passwordDigest,
                            String nonce,
                            String created)
                     throws XWSSecurityException
Overrides:
authenticate in class RealmAuthenticationAdapter
Parameters:
callerSubject - the callerSubject should contain the appropriate principal's of the caller after a successful authentication
username - the username
passwordDigest - the password-digest
nonce - a nonce sent by the caller in the UsernameToken
created - the creation time of the UsernameToken
Returns:
true if authentication succeeds
Throws:
XWSSecurityException - if there is an authentication failure

loadGFHandler

protected CallbackHandler loadGFHandler()


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.