Java Doc for ISecurityContext.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » security » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » uPortal_rel 2 6 1 GA » org.jasig.portal.security 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jasig.portal.security.ISecurityContext

All known Subclasses:   org.jasig.portal.security.provider.TrustSecurityContext,  org.jasig.portal.security.provider.RemoteUserSecurityContext,  org.jasig.portal.security.provider.ChainingSecurityContext,  org.jasig.portal.security.provider.cas.CasSecurityContextMock,  org.jasig.portal.security.provider.JAASSecurityContext,  org.jasig.portal.security.provider.SimpleSecurityContext,  org.jasig.portal.security.provider.CacheSecurityContext,
ISecurityContext
public interface ISecurityContext extends Serializable(Code)
This is the main interface for the JASIG portal effort's security mechanism. We endeavor here to provide considerable encapsulation of the data we are trying to present.
author:
   Andrew Newman, newman@yale.edu
version:
   $Revision: 34783 $
author:
   Don Fracapane (df7@columbia.edu)
author:
   Added getSubContextNames() to support principal and credential tokens




Method Summary
public  voidaddSubContext(String name, ISecurityContext ctx)
     Adds a named sub context to the list of subserviant subcontexts.
Parameters:
  name - The non-compound name of the subserviant context.
public  voidauthenticate()
     Performs the operation of authentication.
public  IAdditionalDescriptorgetAdditionalDescriptor()
     Returns any additional descriptor information that might have been acquired during the process of authentication.
public  intgetAuthType()
     Returns the canonical authentication type for this flavor of authentication.
public  IOpaqueCredentialsgetOpaqueCredentials()
     Returns any credentials that an authenticated principal currently has.
public  IOpaqueCredentialsgetOpaqueCredentialsInstance()
     Returns an empty object reference to an object implementing the IOpaqueCredentials interface.
public  IPrincipalgetPrincipal()
     Returns the currently authenticated principal if we are currently authenticated.
public  IPrincipalgetPrincipalInstance()
     Returns an empty object reference to an object implementing the Principal interface.
public  ISecurityContextgetSubContext(String ctx)
     Returns an ISecurityContext for the named subserviant security context.
public  EnumerationgetSubContextNames()
     Returns an enumeration of the names of the security contexts currently registered as being subserviant to this one.
public  EnumerationgetSubContexts()
     Returns an enumeration of the security contexts currently registered as being subserviant to this one.
public  booleanisAuthenticated()
     Returns a boolean status as to whether the descriptor corresponds to an authenticated principal.



Method Detail
addSubContext
public void addSubContext(String name, ISecurityContext ctx) throws PortalSecurityException(Code)
Adds a named sub context to the list of subserviant subcontexts.
Parameters:
  name - The non-compound name of the subserviant context. Note thatunder normal circumstances the establishment of the InitialSecurityContextwill automatically register all subcontext.
Parameters:
  ctx - The security context object to register.



authenticate
public void authenticate() throws PortalSecurityException(Code)
Performs the operation of authentication. To perform this operation, the values set in the Principal object (whose reference is returned by getPrincipalInstance()) and the OpaqueCredentials object (whose reference is returned by getOpaqueCredentialsInstance()).
See Also:   ISecurityContext.getPrincipalInstance
See Also:   ISecurityContext.getOpaqueCredentialsInstance



getAdditionalDescriptor
public IAdditionalDescriptor getAdditionalDescriptor()(Code)
Returns any additional descriptor information that might have been acquired during the process of authentication. Note that this interface has no methods and the object returned will have to be cast to some concrete type or alternate interface to be useful. An object containing any additional descriptor information.
See Also:   IAdditionalDescriptor



getAuthType
public int getAuthType()(Code)
Returns the canonical authentication type for this flavor of authentication. Each value returned should be either a globally registered auth flavor or a local variant. The unique authentication value identifier. Values with thehigh order 16 bits clear are local (0x0000 - 0x00FF) where values with thehigh order 16 bits set (0xFF00 - 0xFFFF are foundation types distributedby JASIG. All other should be registered and globally unique.



getOpaqueCredentials
public IOpaqueCredentials getOpaqueCredentials()(Code)
Returns any credentials that an authenticated principal currently has. Note that opaque credentials don't have any methods for examination of the credentials contents. This call would primarily be useful to chain authentication manually within the same authentication schem. The currently authenticated credentials object.
See Also:   IOpaqueCredentials



getOpaqueCredentialsInstance
public IOpaqueCredentials getOpaqueCredentialsInstance()(Code)
Returns an empty object reference to an object implementing the IOpaqueCredentials interface. By operating on this returned object the implementation class for the credentials type will be able to access any values set in the Opaque credentials without exposing an interface method that would allow others to access the fields. An empty credentials container.
See Also:   IOpaqueCredentials



getPrincipal
public IPrincipal getPrincipal()(Code)
Returns the currently authenticated principal if we are currently authenticated. Note that merely testing this for a non-null pointer is not sufficient to verify authenticated status. The isAuthenticated() call should be used. In some authentication schemes, an asyncronous event could potentially change one's authentication status. The currently authenticated principal.



getPrincipalInstance
public IPrincipal getPrincipalInstance()(Code)
Returns an empty object reference to an object implementing the Principal interface. By operating on this returned object the implementation class for the credentials type will be able to access any values set in the instance without exposing an interface method that would allow others (inappropriate) acces to the fields. An empty principal container.
See Also:   IPrincipal



getSubContext
public ISecurityContext getSubContext(String ctx) throws PortalSecurityException(Code)
Returns an ISecurityContext for the named subserviant security context. The security context object reference associated with thename specified as the first parameter.
Parameters:
  ctx - The non-compound name of the subserviant security context.



getSubContextNames
public Enumeration getSubContextNames()(Code)
Returns an enumeration of the names of the security contexts currently registered as being subserviant to this one. The enumeration object containing all of the subcontext names.



getSubContexts
public Enumeration getSubContexts()(Code)
Returns an enumeration of the security contexts currently registered as being subserviant to this one. The enumeration object containing all of the contexts.



isAuthenticated
public boolean isAuthenticated()(Code)
Returns a boolean status as to whether the descriptor corresponds to an authenticated principal. Note that the get(Principaal|OpaqueCredentials) calls return null until isAuthenticated first returns true.



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