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

Quick Search    Search Deep

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

java.lang.Object
  extended bygnu.javax.crypto.sasl.ClientFactory
All Implemented Interfaces:
javax.security.sasl.SaslClientFactory

public class ClientFactory
extends java.lang.Object
implements javax.security.sasl.SaslClientFactory

The implementation of javax.security.sasl.SaslClientFactory.


Constructor Summary
ClientFactory()
           
 
Method Summary
 javax.security.sasl.SaslClient createSaslClient(java.lang.String[] mechanisms, java.lang.String authorisationID, java.lang.String protocol, java.lang.String serverName, java.util.Map props, javax.security.auth.callback.CallbackHandler cbh)
          Creates a javax.security.sasl.SaslClient using the parameters supplied.
static ClientMechanism 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

ClientFactory

public ClientFactory()
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 ClientMechanism getInstance(java.lang.String mechanism)

createSaslClient

public javax.security.sasl.SaslClient createSaslClient(java.lang.String[] mechanisms,
                                                       java.lang.String authorisationID,
                                                       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.SaslClientFactory
Creates a javax.security.sasl.SaslClient using the parameters supplied.

Specified by:
createSaslClient in interface javax.security.sasl.SaslClientFactory

getMechanismNames

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

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

hasPolicy

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