APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.security.sasl

public final Class ServerFactoryImpl

extends Object
implements SaslServerFactory
Class Inheritance
All Implemented Interfaces
javax.security.sasl.SaslServerFactory
Imports
javax.security.sasl.*, com.sun.security.sasl.util.PolicyUtils, java.util.Map, javax.security.auth.callback.CallbackHandler

Server factory for CRAM-MD5. Requires the following callback to be satisfied by callback handler when using CRAM-MD5. - AuthorizeCallback (to get canonicalized authzid)
Author
Rosanna Lee

Field Summary

Modifier and TypeField and Description
private static final int
private static final int[]
private static final String[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public SaslServer
createSaslServer(String mech, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh)

Implements javax.security.sasl.SaslServerFactory.createSaslServer.

Creates a SaslServer using the parameters supplied.

public String[]
getMechanismNames(Map<String, ?> props)

Implements javax.security.sasl.SaslServerFactory.getMechanismNames.

Returns an array of names of mechanisms that match the specified mechanism selection policies.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CRAMMD5back to summary
private static final int CRAMMD5
mechPoliciesback to summary
private static final int[] mechPolicies
myMechsback to summary
private static final String[] myMechs

Constructor Detail

ServerFactoryImplback to summary
public ServerFactoryImpl()

Method Detail

createSaslServerback to summary
public SaslServer createSaslServer(String mech, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) throws SaslException

Implements javax.security.sasl.SaslServerFactory.createSaslServer.

Doc from javax.security.sasl.SaslServerFactory.createSaslServer.

Creates a SaslServer using the parameters supplied. It returns null if no SaslServer can be created using the parameters supplied. Throws SaslException if it cannot create a SaslServer because of an error.

Exceptions
SaslException:
If cannot create a SaslServer because of an error.
getMechanismNamesback to summary
public String[] getMechanismNames(Map<String, ?> props)

Implements javax.security.sasl.SaslServerFactory.getMechanismNames.

Doc from javax.security.sasl.SaslServerFactory.getMechanismNames.

Returns an array of names of mechanisms that match the specified mechanism selection policies.