jboss-sasl 1.0.0.Beta1

org.jboss.sasl.anonymous
Class AnonymousServerFactory

java.lang.Object
  extended by org.jboss.sasl.util.AbstractSaslFactory
      extended by org.jboss.sasl.anonymous.AbstractAnonymousFactory
          extended by org.jboss.sasl.anonymous.AnonymousServerFactory
All Implemented Interfaces:
SaslServerFactory

public class AnonymousServerFactory
extends AbstractAnonymousFactory
implements SaslServerFactory

The server factory for the anonymous SASL mechanism.

Author:
Darran Lofthouse

Field Summary
 
Fields inherited from class org.jboss.sasl.anonymous.AbstractAnonymousFactory
ANONYMOUS
 
Constructor Summary
AnonymousServerFactory()
           
 
Method Summary
 SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
           
 String[] getMechanismNames(Map<String,?> props)
          Get the mechanism names matching the given properties.
 
Methods inherited from class org.jboss.sasl.anonymous.AbstractAnonymousFactory
isDictionarySusceptible, isPlainText
 
Methods inherited from class org.jboss.sasl.util.AbstractSaslFactory
getPropertyValue, isActiveSusceptible, isAnonymous, isForwardSecrecy, isIncluded, isPassCredentials, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnonymousServerFactory

public AnonymousServerFactory()
Method Detail

getMechanismNames

public String[] getMechanismNames(Map<String,?> props)
Description copied from class: AbstractSaslFactory
Get the mechanism names matching the given properties.

Specified by:
getMechanismNames in interface SaslServerFactory
Overrides:
getMechanismNames in class AbstractSaslFactory
Parameters:
props - the properties
Returns:
the mechanism names

createSaslServer

public SaslServer createSaslServer(String mechanism,
                                   String protocol,
                                   String serverName,
                                   Map<String,?> props,
                                   CallbackHandler cbh)
                            throws SaslException
Specified by:
createSaslServer in interface SaslServerFactory
Throws:
SaslException

jboss-sasl 1.0.0.Beta1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.