Java Doc for SecurityContext.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » security » context » 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 » J2EE » JOnAS 4.8.6 » org.objectweb.security.context 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.security.context.SecurityContext

SecurityContext
public class SecurityContext implements Serializable(Code)
Implementation of the JOnAS Security Context CAUTION: Don't forget to modify the Marshalling class of this package used for IIOP protocol
author:
   Jeff Mesnil (initial developer)
author:
   Florent Benoit

Inner Class :class InternalPrincipal implements Principal


Constructor Summary
public  SecurityContext()
    
public  SecurityContext(String principalName, String[] roles)
    
public  SecurityContext(String principalName, List arrayRoles)
    
protected  SecurityContext(String principalName, List arrayRoles, List arrayRunas, List arrayRunasPrincipal, List arrayRunasPrincipalRoles)
    
public  SecurityContext(String principalName)
    

Method Summary
public  PrincipalgetCallerPrincipal(boolean inRunAs)
    
public  String[]getCallerPrincipalRoles(boolean inRunAs)
    
protected  StringgetPrincipalName(boolean runningRunAs)
    
public  StringgetPrincipalName()
    
public  String[]getRoles()
    
public synchronized  ListgetRunAsPrincipalRolesStack()
    
public synchronized  ListgetRunAsPrincipalStack()
    
public synchronized  ListgetRunAsRoleStack()
    
public  byte[]getSignature()
     Gets the signature.
public synchronized  StringpeekLastRunAsPrincipal()
     Peek : Looks at the object at the top of this stack without removing it from the stack.
public synchronized  String[]peekLastRunAsPrincipalRoles()
     Peek : Looks at the object at the top of this stack without removing it from the stack.
public synchronized  StringpeekRunAsPrincipal()
     Peek : Looks at the object at the top of this stack without removing it from the stack.
public synchronized  String[]peekRunAsPrincipalRoles()
     Peek : Looks at the object at the top of this stack without removing it from the stack.
public synchronized  StringpeekRunAsRole()
     Peek : Looks at the object at the top of this stack without removing it from the stack.
public synchronized  voidpopRunAs()
    
public synchronized  voidpushRunAs(String role, String principalName, String[] roles)
     Push : Pushes run-as items at the top of this stack.
public  voidsetSignature(byte[] signedData)
     Sets the signature.
public  StringtoString()
    


Constructor Detail
SecurityContext
public SecurityContext()(Code)
Constructor SecurityContext use the default principal name



SecurityContext
public SecurityContext(String principalName, String[] roles)(Code)
Constructor SecurityContext
Parameters:
  principalName - principal name
Parameters:
  roles - the roles of the principal



SecurityContext
public SecurityContext(String principalName, List arrayRoles)(Code)
Constructor SecurityContext
Parameters:
  principalName - principal name
Parameters:
  arrayRoles - the list of the roles of the principal



SecurityContext
protected SecurityContext(String principalName, List arrayRoles, List arrayRunas, List arrayRunasPrincipal, List arrayRunasPrincipalRoles)(Code)
Constructor SecurityContext
Parameters:
  principalName - principal name
Parameters:
  arrayRoles - the list of the roles of the principal
Parameters:
  arrayRunas - the RunAs stack
Parameters:
  arrayRunasPrincipal - the RunAs stack for principal of runAs
Parameters:
  arrayRunasPrincipalRoles - the RunAs stack for roles of the principal



SecurityContext
public SecurityContext(String principalName)(Code)
Constructor SecurityContext
Parameters:
  principalName - principal name




Method Detail
getCallerPrincipal
public Principal getCallerPrincipal(boolean inRunAs)(Code)
Method getCallerPrincipal
Parameters:
  inRunAs - is the caller is in a runAs case in RunAs mode thisfunction must return the caller of the bean and not the run asidentity (EJB 2.1 chapter21.2.5.1) the Principal in the Security Context



getCallerPrincipalRoles
public String[] getCallerPrincipalRoles(boolean inRunAs)(Code)
Return the roles of the principal
Parameters:
  inRunAs - caller is in run-as bean ? roles of this principal



getPrincipalName
protected String getPrincipalName(boolean runningRunAs)(Code)

Parameters:
  runningRunAs - bean is currently running with run-as enabled the principal name.



getPrincipalName
public String getPrincipalName()(Code)
the principal Name.



getRoles
public String[] getRoles()(Code)
the roles.



getRunAsPrincipalRolesStack
public synchronized List getRunAsPrincipalRolesStack()(Code)
Gets the stack which manages the roles of the current run-as principal the stack which manages the roles of the current run-as principal



getRunAsPrincipalStack
public synchronized List getRunAsPrincipalStack()(Code)
Gets the stack which manages the run-as principal the stack which manages the run-as principal



getRunAsRoleStack
public synchronized List getRunAsRoleStack()(Code)
Gets the stack which manages the run-as the stack which manages the run-as



getSignature
public byte[] getSignature()(Code)
Gets the signature. signature



peekLastRunAsPrincipal
public synchronized String peekLastRunAsPrincipal()(Code)
Peek : Looks at the object at the top of this stack without removing it from the stack. the principal at the top of the stack



peekLastRunAsPrincipalRoles
public synchronized String[] peekLastRunAsPrincipalRoles()(Code)
Peek : Looks at the object at the top of this stack without removing it from the stack. the principal at the top of the stack



peekRunAsPrincipal
public synchronized String peekRunAsPrincipal()(Code)
Peek : Looks at the object at the top of this stack without removing it from the stack. the principal at the top of the stack



peekRunAsPrincipalRoles
public synchronized String[] peekRunAsPrincipalRoles()(Code)
Peek : Looks at the object at the top of this stack without removing it from the stack. the principal at the top of the stack



peekRunAsRole
public synchronized String peekRunAsRole()(Code)
Peek : Looks at the object at the top of this stack without removing it from the stack. the role at the top of the stack



popRunAs
public synchronized void popRunAs()(Code)
Pop : Removes the object at the top of the run-as stack



pushRunAs
public synchronized void pushRunAs(String role, String principalName, String[] roles)(Code)
Push : Pushes run-as items at the top of this stack.
Parameters:
  role - the role to add on top of the stack
Parameters:
  principalName - the name of the principal to add on top of thestack.
Parameters:
  roles - list of roles of this principal.



setSignature
public void setSignature(byte[] signedData)(Code)
Sets the signature.
Parameters:
  signedData - the given data of the signature.



toString
public String toString()(Code)
Method toString String a string representation of the object



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.