Java Doc for IssuedTokenContext.java in  » 6.0-JDK-Modules-com.sun » xws-security » com » sun » xml » ws » 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 » 6.0 JDK Modules com.sun » xws security » com.sun.xml.ws.security 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.xml.ws.security.IssuedTokenContext

All known Subclasses:   com.sun.xml.ws.security.impl.IssuedTokenContextImpl,
IssuedTokenContext
public interface IssuedTokenContext (Code)
This interface is the SPI defined by WS-Security to enable WS-Trust/SecureConversation specific security interactions.

This interface represents a Context containing information populated and used by the Trust and the Security Enforcement Layers (for example the proof-token of an Issued token needs to be used by the SecurityEnforcement Layer to secure the message).





Method Summary
 voiddestroy()
     Destroy the IssuedTokenContext.
 TokengetAssociatedProofToken()
    
 TokengetAttachedSecurityTokenReference()
     If the token returned doesnt allow use of wsu:id attribute then a STR is returned as which needs to be inserted into a for example.
 URIgetComputedKeyAlgorithmFromProofToken()
     Return the URI if any inside the RSTR, null otherwise.
 DategetCreationTime()
    
 KeygetDecipheredOtherPartyEntropy(Key privKey)
    
 StringgetEndpointAddress()
    
 DategetExpirationTime()
    
 ObjectgetOtherPartyEntropy()
    
 byte[]getProofKey()
    
 X509CertificategetRequestorCertificate()
    
 SubjectgetRequestorSubject()
    
 StringgetRequestorUsername()
    
 SecurityContextTokenInfogetSecurityContextTokenInfo()
     Get the SecurityContextTokenInfo for this Token if any.
 ArrayListgetSecurityPolicy()
     get the SecurityPolicy to be applied for the request or response to which this SecurityContext corresponds to This allows the Client and/or the Service (WSP/STS) to dynamically inject policy to be applied.
 TokengetSecurityToken()
     Depending on the policy get the Token to be used in Securing requests and/or responses.
 ObjectgetSelfEntropy()
    
 TokengetUnAttachedSecurityTokenReference()
     If the token returned doesnt allow use of wsu:id attribute then a STR is returned as which needs to be inserted into a for example.
 voidsetAssociatedProofToken(Token token)
    
 voidsetAttachedSecurityTokenReference(Token str)
    
 voidsetCreationTime(Date date)
    
 voidsetEndpointAddress(String endPointAddress)
    
 voidsetExpirationTime(Date date)
     set the Expiration Time for this Token if any.
 voidsetOtherPartyEntropy(Object entropy)
     Set the Entropy information provided by the other Part (if any)

WS-Trust allows requestor to provide input to key material in the request.

 voidsetProofKey(byte[] key)
    
 voidsetRequestorCertificate(X509Certificate cert)
     Append the Requestor Certificate that was used in an incoming message.
 voidsetRequestorSubject(Subject subject)
    
 voidsetRequestorUsername(String username)
    
 voidsetSecurityContextTokenInfo(SecurityContextTokenInfo sctInfo)
     set the SecurityContextTokenInfo for this Token if any.
 voidsetSecurityToken(Token tok)
    
 voidsetSelfEntropy(Object entropy)
    
 voidsetUnAttachedSecurityTokenReference(Token str)
    



Method Detail
destroy
void destroy()(Code)
Destroy the IssuedTokenContext.



getAssociatedProofToken
Token getAssociatedProofToken()(Code)
get the Proof Token (if any) associated with the SecurityToken, null otherwise



getAttachedSecurityTokenReference
Token getAttachedSecurityTokenReference()(Code)
If the token returned doesnt allow use of wsu:id attribute then a STR is returned as which needs to be inserted into a for example. STR if set, null otherwise



getComputedKeyAlgorithmFromProofToken
URI getComputedKeyAlgorithmFromProofToken()(Code)
Return the URI if any inside the RSTR, null otherwise. The Security Enforcement Layer would compute the Key as P_SHA1(Ent(req), Ent(res))



getCreationTime
Date getCreationTime()(Code)
the creation Time of the IssuedToken



getDecipheredOtherPartyEntropy
Key getDecipheredOtherPartyEntropy(Key privKey) throws XWSSecurityException(Code)
Get the Entropy if any provided by the other party, null otherwise If the Entropy was specified as an then this method would return the decrypted secret



getEndpointAddress
String getEndpointAddress()(Code)
get the endpoint address



getExpirationTime
Date getExpirationTime()(Code)
get the Expiration Time for this Token if any



getOtherPartyEntropy
Object getOtherPartyEntropy()(Code)
Get the Entropy if any provided by the Other Party, null otherwise



getProofKey
byte[] getProofKey()(Code)
get the SecureConversation ProofToken as a byte[] array



getRequestorCertificate
X509Certificate getRequestorCertificate()(Code)
Requestor Certificate(s) the sender certificate, null otherwise



getRequestorSubject
Subject getRequestorSubject()(Code)



getRequestorUsername
String getRequestorUsername()(Code)
Requestor username if any the requestor username if provided



getSecurityContextTokenInfo
SecurityContextTokenInfo getSecurityContextTokenInfo()(Code)
Get the SecurityContextTokenInfo for this Token if any.



getSecurityPolicy
ArrayList getSecurityPolicy()(Code)
get the SecurityPolicy to be applied for the request or response to which this SecurityContext corresponds to This allows the Client and/or the Service (WSP/STS) to dynamically inject policy to be applied. For example in the case of SignChallenge when the Initiator (client) has to sign a specific challenge.

Note: Inserting an un-solicited RSTR into a SOAP Header can also be expressed as a policy and the subsequent requirement to sign the RSTR will also be expressed as a policy

TODO: There is no policy today to insert a specific element to a SOAP Header, we need to extend the policy definitions in XWS-Security.



getSecurityToken
Token getSecurityToken()(Code)
Depending on the policy get the Token to be used in Securing requests and/or responses. The token returned is to be used only for inserting into the SecurityHeader, if the getAssociatedProofToken is not null, and it should also be used for securing the message if there is no Proof Token associated.



getSelfEntropy
Object getSelfEntropy()(Code)
Get self Entropy if set, null otherwise



getUnAttachedSecurityTokenReference
Token getUnAttachedSecurityTokenReference()(Code)
If the token returned doesnt allow use of wsu:id attribute then a STR is returned as which needs to be inserted into a for example. STR if set, null otherwise



setAssociatedProofToken
void setAssociatedProofToken(Token token)(Code)
Set the Proof Token Associated with the SecurityToken

when the SecurityToken is a SecurityContext token (as defined in WS-SecureConversation) and Derived Keys are being used then the Proof Token is the




setAttachedSecurityTokenReference
void setAttachedSecurityTokenReference(Token str)(Code)
If the token returned doesnt allow use of wsu:id attribute then a STR is returned as which needs to be inserted into a for example



setCreationTime
void setCreationTime(Date date)(Code)
set the creation Time of the IssuedToken



setEndpointAddress
void setEndpointAddress(String endPointAddress)(Code)
set the endpointaddress



setExpirationTime
void setExpirationTime(Date date)(Code)
set the Expiration Time for this Token if any.



setOtherPartyEntropy
void setOtherPartyEntropy(Object entropy)(Code)
Set the Entropy information provided by the other Part (if any)

WS-Trust allows requestor to provide input to key material in the request. The requestor might do this to satisfy itself as to the degree of entropy(cyrptographic randomness) of atleast some of the material used to generate the actual Key.

For composite Keys Entropy can be set by both parties, the concrete entropy element can be a instance but the argument here is generic to avoid a dependence of the SPI on WS-Trust packages



setProofKey
void setProofKey(byte[] key)(Code)
set the SecureConversation ProofToken as a byte[] array



setRequestorCertificate
void setRequestorCertificate(X509Certificate cert)(Code)
Append the Requestor Certificate that was used in an incoming message.



setRequestorSubject
void setRequestorSubject(Subject subject)(Code)



setRequestorUsername
void setRequestorUsername(String username)(Code)
set requestor username



setSecurityContextTokenInfo
void setSecurityContextTokenInfo(SecurityContextTokenInfo sctInfo)(Code)
set the SecurityContextTokenInfo for this Token if any.



setSecurityToken
void setSecurityToken(Token tok)(Code)
Depending on the server policy, set the Token to be used in Securing requests and/or responses



setSelfEntropy
void setSelfEntropy(Object entropy)(Code)
Set self Entropy



setUnAttachedSecurityTokenReference
void setUnAttachedSecurityTokenReference(Token str)(Code)
If the token returned doesnt allow use of wsu:id attribute then a STR is returned as which needs to be inserted into a for example



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