Java Doc for SaslServerFactory.java in  » 6.0-JDK-Core » security » javax » security » sasl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » security » javax.security.sasl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.security.sasl.SaslServerFactory

SaslServerFactory
abstract public interface SaslServerFactory (Code)
An interface for creating instances of SaslServer. A class that implements this interface must be thread-safe and handle multiple simultaneous requests. It must also have a public constructor that accepts no argument.

This interface is not normally accessed directly by a server, which will use the Sasl static methods instead. However, a particular environment may provide and install a new or different SaslServerFactory.
since:
   1.5
See Also:   SaslServer
See Also:   Sasl
author:
   Rosanna Lee
author:
   Rob Weltman





Method Summary
abstract public  SaslServercreateSaslServer(String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh)
     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.
Parameters:
  mechanism - The non-nullIANA-registered name of a SASL mechanism.
abstract public  String[]getMechanismNames(Map<String, ?> props)
     Returns an array of names of mechanisms that match the specified mechanism selection policies.
Parameters:
  props - The possibly null set of properties used to specify thesecurity policy of the SASL mechanisms.



Method Detail
createSaslServer
abstract public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) throws SaslException(Code)
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.
Parameters:
  mechanism - The non-nullIANA-registered name of a SASL mechanism. (e.g. "GSSAPI", "CRAM-MD5").
Parameters:
  protocol - The non-null string name of the protocol for whichthe authentication is being performed (e.g., "ldap").
Parameters:
  serverName - The non-null fully qualified host name of the serverto authenticate to.
Parameters:
  props - The possibly null set of properties used to select the SASLmechanism and to configure the authentication exchange of the selectedmechanism. See the Sasl class for a list of standard properties. Other, possibly mechanism-specific, properties can be included.Properties not relevant to the selected mechanism are ignored,including any map entries with non-String keys.
Parameters:
  cbh - The possibly null callback handler to used by the SASLmechanisms to get further information from the application/libraryto complete the authentication. For example, a SASL mechanism mightrequire the authentication ID, password and realm from the caller.The authentication ID is requested by using a NameCallback.The password is requested by using a PasswordCallback.The realm is requested by using a RealmChoiceCallback if there is a listof realms to choose from, and by using a RealmCallback ifthe realm must be entered. A possibly null SaslServer created using the parameterssupplied. If null, this factory cannot produce a SaslServerusing the parameters supplied.
exception:
  SaslException - If cannot create a SaslServer becauseof an error.



getMechanismNames
abstract public String[] getMechanismNames(Map<String, ?> props)(Code)
Returns an array of names of mechanisms that match the specified mechanism selection policies.
Parameters:
  props - The possibly null set of properties used to specify thesecurity policy of the SASL mechanisms. For example, if propscontains the Sasl.POLICY_NOPLAINTEXT property with the value"true", then the factory must not return any SASL mechanismsthat are susceptible to simple plain passive attacks.See the Sasl class for a complete list of policy properties.Non-policy related properties, if present in props, are ignored,including any map entries with non-String keys. A non-null array containing a IANA-registered SASL mechanism names.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.