Java Doc for AuthProvider.java in  » 6.0-JDK-Core » security » java » security » 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 » java.security 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.security.Provider
   java.security.AuthProvider

AuthProvider
abstract public class AuthProvider extends Provider (Code)
This class defines login and logout methods for a provider.

While callers may invoke login directly, the provider may also invoke login on behalf of callers if it determines that a login must be performed prior to certain operations.
version:
   1.10, 05/05/07
since:
   1.5




Constructor Summary
protected  AuthProvider(String name, double version, String info)
     Constructs a provider with the specified name, version number, and information.

Method Summary
abstract public  voidlogin(Subject subject, CallbackHandler handler)
     Log in to this provider.

The provider relies on a CallbackHandler to obtain authentication information from the caller (a PIN, for example).

abstract public  voidlogout()
     Log out from this provider.
abstract public  voidsetCallbackHandler(CallbackHandler handler)
     Set a CallbackHandler.

The provider uses this handler if one is not passed to the login method.



Constructor Detail
AuthProvider
protected AuthProvider(String name, double version, String info)(Code)
Constructs a provider with the specified name, version number, and information.
Parameters:
  name - the provider name.
Parameters:
  version - the provider version number.
Parameters:
  info - a description of the provider and its services.




Method Detail
login
abstract public void login(Subject subject, CallbackHandler handler) throws LoginException(Code)
Log in to this provider.

The provider relies on a CallbackHandler to obtain authentication information from the caller (a PIN, for example). If the caller passes a null handler to this method, the provider uses the handler set in the setCallbackHandler method. If no handler was set in that method, the provider queries the auth.login.defaultCallbackHandler security property for the fully qualified class name of a default handler implementation. If the security property is not set, the provider is assumed to have alternative means for obtaining authentication information.
Parameters:
  subject - the Subject which may containprincipals/credentials used for authentication,or may be populated with additional principals/credentialsafter successful authentication has completed.This parameter may be null.
Parameters:
  handler - the CallbackHandler used bythis provider to obtain authentication informationfrom the caller, which may be null
exception:
  LoginException - if the login operation fails
exception:
  SecurityException - if the caller does not pass asecurity check forSecurityPermission("authProvider.name"),where name is the value returned bythis provider's getName method




logout
abstract public void logout() throws LoginException(Code)
Log out from this provider.
exception:
  LoginException - if the logout operation fails
exception:
  SecurityException - if the caller does not pass asecurity check forSecurityPermission("authProvider.name"),where name is the value returned bythis provider's getName method



setCallbackHandler
abstract public void setCallbackHandler(CallbackHandler handler)(Code)
Set a CallbackHandler.

The provider uses this handler if one is not passed to the login method. The provider also uses this handler if it invokes login on behalf of callers. In either case if a handler is not set via this method, the provider queries the auth.login.defaultCallbackHandler security property for the fully qualified class name of a default handler implementation. If the security property is not set, the provider is assumed to have alternative means for obtaining authentication information.
Parameters:
  handler - a CallbackHandler for obtainingauthentication information, which may be null
exception:
  SecurityException - if the caller does not pass asecurity check forSecurityPermission("authProvider.name"),where name is the value returned bythis provider's getName method




Fields inherited from java.security.Provider
final static long serialVersionUID(Code)(Java Doc)

Methods inherited from java.security.Provider
public synchronized void clear()(Code)(Java Doc)
public Enumeration<Object> elements()(Code)(Java Doc)
public synchronized Set<Map.Entry<Object, Object>> entrySet()(Code)(Java Doc)
public Object get(Object key)(Code)(Java Doc)
public String getInfo()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public String getProperty(String key)(Code)(Java Doc)
public synchronized Service getService(String type, String algorithm)(Code)(Java Doc)
public synchronized Set<Service> getServices()(Code)(Java Doc)
public double getVersion()(Code)(Java Doc)
public Set<Object> keySet()(Code)(Java Doc)
public Enumeration<Object> keys()(Code)(Java Doc)
public synchronized void load(InputStream inStream) throws IOException(Code)(Java Doc)
public synchronized Object put(Object key, Object value)(Code)(Java Doc)
public synchronized void putAll(Map t)(Code)(Java Doc)
protected synchronized void putService(Service s)(Code)(Java Doc)
public synchronized Object remove(Object key)(Code)(Java Doc)
protected synchronized void removeService(Service s)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public Collection<Object> values()(Code)(Java Doc)

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