Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.javax.crypto.sasl
Class ServerFactory  view ServerFactory download ServerFactory.java

java.lang.Object
  extended bygnu.javax.crypto.sasl.ServerFactory
All Implemented Interfaces:
javax.security.sasl.SaslServerFactory

public class ServerFactory
extends java.lang.Object
implements javax.security.sasl.SaslServerFactory

The implementation of the javax.security.sasl.SaslServerFactory.


Constructor Summary
ServerFactory()
           
 
Method Summary
 javax.security.sasl.SaslServer createSaslServer(java.lang.String mechanism, java.lang.String protocol, java.lang.String serverName, java.util.Map props, javax.security.auth.callback.CallbackHandler cbh)
          Creates a javax.security.sasl.SaslServer instance using the parameters supplied.
static ServerMechanism getInstance(java.lang.String mechanism)
           
 java.lang.String[] getMechanismNames(java.util.Map props)
          Returns an array of names of mechanisms that match the specified mechanism selection policies.
static java.util.Set getNames()
           
private static java.lang.String[] getNamesInternal(java.util.Map props)
           
private static boolean hasPolicy(java.lang.String propertyName, java.util.Map props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerFactory

public ServerFactory()
Method Detail

getNames

public static final java.util.Set getNames()

getNamesInternal

private static final java.lang.String[] getNamesInternal(java.util.Map props)

getInstance

public static final ServerMechanism getInstance(java.lang.String mechanism)

createSaslServer

public javax.security.sasl.SaslServer createSaslServer(java.lang.String mechanism,
                                                       java.lang.String protocol,
                                                       java.lang.String serverName,
                                                       java.util.Map props,
                                                       javax.security.auth.callback.CallbackHandler cbh)
                                                throws javax.security.sasl.SaslException
Description copied from interface: javax.security.sasl.SaslServerFactory
Creates a javax.security.sasl.SaslServer instance using the parameters supplied. It returns null if no javax.security.sasl.SaslServer instance can be created using the parameters supplied. Throws javax.security.sasl.SaslException if it cannot create a javax.security.sasl.SaslServer because of an error.

Specified by:
createSaslServer in interface javax.security.sasl.SaslServerFactory

getMechanismNames

public java.lang.String[] getMechanismNames(java.util.Map props)
Description copied from interface: javax.security.sasl.SaslServerFactory
Returns an array of names of mechanisms that match the specified mechanism selection policies.

Specified by:
getMechanismNames in interface javax.security.sasl.SaslServerFactory

hasPolicy

private static boolean hasPolicy(java.lang.String propertyName,
                                 java.util.Map props)