org.jboss.security.auth.container.modules
Class SimpleServerAuthModule

java.lang.Object
  extended by org.jboss.security.auth.container.modules.AbstractServerAuthModule
      extended by org.jboss.security.auth.container.modules.SimpleServerAuthModule
All Implemented Interfaces:
javax.security.auth.message.module.ServerAuthModule, javax.security.auth.message.ServerAuth

public class SimpleServerAuthModule
extends AbstractServerAuthModule

A simple implementation of an username/password based server auth module. The principal name and password are passed as options to the module.

Since:
Dec 6, 2005
Author:
Anil Saldhana

Field Summary
 
Fields inherited from class org.jboss.security.auth.container.modules.AbstractServerAuthModule
callbackHandler, log, options, requestPolicy, responsePolicy, supportedTypes
 
Constructor Summary
SimpleServerAuthModule()
           
SimpleServerAuthModule(Class<?>[] supTypes)
           
 
Method Summary
 javax.security.auth.message.AuthStatus secureResponse(javax.security.auth.message.MessageInfo param, Subject source)
           
protected  boolean validate(Subject clientSubject, javax.security.auth.message.MessageInfo messageInfo)
          Subclasses have to implement this method to actually validate the subject
 
Methods inherited from class org.jboss.security.auth.container.modules.AbstractServerAuthModule
cleanSubject, getCallbackHandler, getSupportedMessageTypes, initialize, setCallbackHandler, validateRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleServerAuthModule

public SimpleServerAuthModule()

SimpleServerAuthModule

public SimpleServerAuthModule(Class<?>[] supTypes)
Method Detail

secureResponse

public javax.security.auth.message.AuthStatus secureResponse(javax.security.auth.message.MessageInfo param,
                                                             Subject source)
                                                      throws javax.security.auth.message.AuthException
Throws:
javax.security.auth.message.AuthException
See Also:
ServerAuthModule#secureResponse(AuthParam, Subject, Map)

validate

protected boolean validate(Subject clientSubject,
                           javax.security.auth.message.MessageInfo messageInfo)
                    throws javax.security.auth.message.AuthException
Description copied from class: AbstractServerAuthModule
Subclasses have to implement this method to actually validate the subject

Specified by:
validate in class AbstractServerAuthModule
Returns:
Throws:
javax.security.auth.message.AuthException


Copyright © 2009 JBoss Inc.. All Rights Reserved.