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


java.lang.Object
   com.sun.xml.ws.security.trust.WSTrustElementFactory

All known Subclasses:   com.sun.xml.ws.security.trust.impl.wssx.WSTrustElementFactoryImpl,  com.sun.xml.ws.security.trust.impl.WSTrustElementFactoryImpl,
WSTrustElementFactory
abstract public class WSTrustElementFactory (Code)
A Factory for creating the WS-Trust schema elements, and marshalling/un-marshalling them

The default Implementation classes for all these WS-Trust schema Elements would assume that JAXB Bindings were generated for ws-trust.xsd schema in a particular fixed namespace/package. The default implementation classes for all these WS-Trust Element Interfaces would hence wrap the schema generated classes.

An STS Service can create a RequestSecurityToken from the JAXBBean(i.e RequestSecurityTokenType) it receives, as an SEI method parameter, in the following manner

 RequestSecurityTokenType tok=...//obtained as JAXWS SEI method paramater
 ObjectFactory factory = new ObjectFactory();
 JAXBElement<RequestSecurityTokenType> rst= factory.createRequestSecurityToken(tok);
 WSTrustElementFactory fact= ..
 RequestSecurityToken requestSecurityToken= fact.createRSTFrom(rst);
 

To get back a JAXB Bean from an instance of RequestSecurityToken the following can be done

 JAXBElement<RequestSecurityTokenType> elem = fact.toJAXBElement(requestSecurityToken);
 RequestSecurityTokenType tok = elem.getValue();
 


author:
   Kumar Jayanti




Method Summary
abstract public  BinarySecretcreateBinarySecret(byte[] rawValue, String type)
    
abstract public  BinarySecretcreateBinarySecret(Element elem)
    
abstract public  CancelTargetcreateCancelTarget(SecurityTokenReference str)
    
abstract public  DirectReferencecreateDirectReference(String valueType, String uri)
    
abstract public  EntropycreateEntropy(BinarySecret secret)
    
abstract public  EntropycreateEntropy(EncryptedKey key)
    
abstract public  IssuedTokenscreateIssuedTokens(RequestSecurityTokenResponseCollection issuedTokens)
    
abstract public  KeyIdentifiercreateKeyIdentifier(String valueType, String encodingType)
    
abstract public  LifetimecreateLifetime(AttributedDateTime created, AttributedDateTime expires)
     Create a Lifetime.
abstract public  RequestSecurityTokencreateRST()
    
abstract public  RequestSecurityTokencreateRSTForCancel(URI requestType, CancelTarget target)
    
abstract public  RequestSecurityTokencreateRSTForIssue(URI tokenType, URI requestType, URI context, AppliesTo scopes, Claims claims, Entropy entropy, Lifetime lifetime)
    
abstract public  RequestSecurityTokencreateRSTForRenew(URI tokenType, URI requestType, URI context, RenewTarget target, AllowPostdating apd, Renewing renewingInfo)
    
abstract public  RequestSecurityTokencreateRSTForValidate(URI tokenType, URI requestType)
     Create an RST for Token Validation

TODO: Not clear from Spec whether the Token to be validated is ever sent ? TODO: There is a mention of special case where a SOAPEnvelope may be specified as a security token if the requestor desires the envelope to be validated.

abstract public  RequestSecurityTokencreateRSTFrom(Source src)
    
abstract public  RequestSecurityTokencreateRSTFrom(Element elem)
    
abstract public  RequestSecurityTokencreateRSTFrom(JAXBElement elem)
     create an RST from JAXBElement

NOTE: an STS Implementor can call

 JAXBElement<RequestSecurityTokenType> elem= 
 ObjectFactory.createRequestSecurityToken(<JAXBBean for RST>)
 
The JAXBBean for RST is the one generated from the ws-trust.xsd schema The default implementation expects the packagename of the generated JAXB Beans to be fixed.
abstract public  RequestSecurityTokenResponsecreateRSTR()
    
abstract public  RequestSecurityTokenResponseCollectioncreateRSTRCollectionForIssue(URI tokenType, URI context, RequestedSecurityToken token, AppliesTo scopes, RequestedAttachedReference attachedRef, RequestedUnattachedReference unattachedRef, RequestedProofToken proofToken, Entropy entropy, Lifetime lifetime)
    
abstract public  RequestSecurityTokenResponseCollectioncreateRSTRCollectionFrom(Source src)
    
abstract public  RequestSecurityTokenResponseCollectioncreateRSTRCollectionFrom(Element elem)
    
abstract public  RequestSecurityTokenResponseCollectioncreateRSTRCollectionFrom(JAXBElement elem)
     create an RSTR Collection from JAXBElement

NOTE: an STS Implementor can call

 JAXBElement<RequestSecurityTokenResponseCollectionType> elem= 
 ObjectFactory.createRequestSecurityTokenResponseCollection(<JAXBBean for RSTR Collection>
 
The <JAXBBean for RSTR Collection> is the one generated from the ws-trust.xsd schema The default implementation expects the packagename of the generated JAXB Beans to be fixed.
abstract public  RequestSecurityTokenResponsecreateRSTRForCancel()
    
abstract public  RequestSecurityTokenResponsecreateRSTRForIssue(URI tokenType, URI context, RequestedSecurityToken token, AppliesTo scopes, RequestedAttachedReference attachedRef, RequestedUnattachedReference unattachedRef, RequestedProofToken proofToken, Entropy entropy, Lifetime lifetime)
    
abstract public  RequestSecurityTokenResponsecreateRSTRForValidate(URI tokenType, RequestedSecurityToken token, Status status)
     create an RSTR for validate request.
abstract public  RequestSecurityTokenResponsecreateRSTRFrom(Source src)
    
abstract public  RequestSecurityTokenResponsecreateRSTRFrom(Element elem)
    
abstract public  RequestSecurityTokenResponsecreateRSTRFrom(JAXBElement elem)
     create an RSTR from JAXBElement

NOTE: an STS Implementor can call

 JAXBElement<RequestSecurityTokenResponseType> elem= 
 ObjectFactory.createRequestSecurityTokenResponse(<JAXBBean for RSTR>);
 
The <JAXBBean for RSTR> is the one generated from the ws-trust.xsd schema The default implementation expects the packagename of the generated JAXB Beans to be fixed.
abstract public  RequestedAttachedReferencecreateRequestedAttachedReference(SecurityTokenReference str)
     Create a RequestedAttachedReference.
abstract public  RequestedProofTokencreateRequestedProofToken()
     Create a RequestedProofToken.
abstract public  RequestedSecurityTokencreateRequestedSecurityToken(Token token)
     Create a RequestedSecurityToken.
abstract public  RequestedSecurityTokencreateRequestedSecurityToken()
    
abstract public  RequestedUnattachedReferencecreateRequestedUnattachedReference(SecurityTokenReference str)
     Create a RequestedUnattachedReference.
abstract public  SecurityTokenReferencecreateSecurityTokenReference(Reference ref)
    
abstract public  SecurityTokenReferencecreateSecurityTokenReference(JAXBElement elem)
    
public static  JAXBContextgetContext()
    
public static  WSTrustElementFactorynewInstance()
    
abstract public  ElementtoElement(RequestSecurityToken rst)
     Marshal an RST to a DOM Element.
abstract public  ElementtoElement(RequestSecurityTokenResponse rstr)
    
abstract public  ElementtoElement(RequestSecurityTokenResponse rstr, Document doc)
    
abstract public  ElementtoElement(RequestSecurityTokenResponseCollection rstrCollection)
    
abstract public  ElementtoElement(BinarySecret binarySecret)
    
abstract public  ElementtoElement(SecurityTokenReference str, Document doc)
     Marshal an STR to a DOM Element.
abstract public  ElementtoElement(BinarySecret binarySecret, Document doc)
     Marshal an BinarySecret to a DOM Element.
abstract public  JAXBElementtoJAXBElement(SecurityTokenReference str)
    
abstract public  JAXBElementtoJAXBElement(RequestSecurityToken rst)
    
abstract public  JAXBElementtoJAXBElement(RequestSecurityTokenResponse rstr)
    
abstract public  JAXBElementtoJAXBElement(RequestSecurityTokenResponseCollection rstrCollection)
    
abstract public  SourcetoSource(RequestSecurityToken rst)
     Marshal an RST to a Source.
abstract public  SourcetoSource(RequestSecurityTokenResponse rstr)
    
abstract public  SourcetoSource(RequestSecurityTokenResponseCollection rstrCollection)
    



Method Detail
createBinarySecret
abstract public BinarySecret createBinarySecret(byte[] rawValue, String type)(Code)
Create a BinarySecret



createBinarySecret
abstract public BinarySecret createBinarySecret(Element elem) throws WSTrustException(Code)
Create a BinarySecret



createCancelTarget
abstract public CancelTarget createCancelTarget(SecurityTokenReference str)(Code)



createDirectReference
abstract public DirectReference createDirectReference(String valueType, String uri)(Code)



createEntropy
abstract public Entropy createEntropy(BinarySecret secret)(Code)
Create an Entropy with a BinarySecret



createEntropy
abstract public Entropy createEntropy(EncryptedKey key)(Code)
Create an Entropy with an xenc:EncryptedKey



createIssuedTokens
abstract public IssuedTokens createIssuedTokens(RequestSecurityTokenResponseCollection issuedTokens)(Code)
Create a wst:IssuedTokens object



createKeyIdentifier
abstract public KeyIdentifier createKeyIdentifier(String valueType, String encodingType)(Code)



createLifetime
abstract public Lifetime createLifetime(AttributedDateTime created, AttributedDateTime expires)(Code)
Create a Lifetime.



createRST
abstract public RequestSecurityToken createRST()(Code)
Create an Empty RST



createRSTForCancel
abstract public RequestSecurityToken createRSTForCancel(URI requestType, CancelTarget target)(Code)
Create an RST for Token Cancellation



createRSTForIssue
abstract public RequestSecurityToken createRSTForIssue(URI tokenType, URI requestType, URI context, AppliesTo scopes, Claims claims, Entropy entropy, Lifetime lifetime) throws WSTrustException(Code)
Create an RST for Issue from the given arguments Any of the arguments can be null since they are all optional, but one of tokenType and AppliesTo must be present



createRSTForRenew
abstract public RequestSecurityToken createRSTForRenew(URI tokenType, URI requestType, URI context, RenewTarget target, AllowPostdating apd, Renewing renewingInfo)(Code)
Create an RST for a Renewal Request



createRSTForValidate
abstract public RequestSecurityToken createRSTForValidate(URI tokenType, URI requestType)(Code)
Create an RST for Token Validation

TODO: Not clear from Spec whether the Token to be validated is ever sent ? TODO: There is a mention of special case where a SOAPEnvelope may be specified as a security token if the requestor desires the envelope to be validated.




createRSTFrom
abstract public RequestSecurityToken createRSTFrom(Source src)(Code)
create an RST from a Source



createRSTFrom
abstract public RequestSecurityToken createRSTFrom(Element elem)(Code)
create an RST from DOM Element



createRSTFrom
abstract public RequestSecurityToken createRSTFrom(JAXBElement elem)(Code)
create an RST from JAXBElement

NOTE: an STS Implementor can call

 JAXBElement<RequestSecurityTokenType> elem= 
 ObjectFactory.createRequestSecurityToken(<JAXBBean for RST>)
 
The JAXBBean for RST is the one generated from the ws-trust.xsd schema The default implementation expects the packagename of the generated JAXB Beans to be fixed.




createRSTR
abstract public RequestSecurityTokenResponse createRSTR()(Code)
Create an Empty RSTR



createRSTRCollectionForIssue
abstract public RequestSecurityTokenResponseCollection createRSTRCollectionForIssue(URI tokenType, URI context, RequestedSecurityToken token, AppliesTo scopes, RequestedAttachedReference attachedRef, RequestedUnattachedReference unattachedRef, RequestedProofToken proofToken, Entropy entropy, Lifetime lifetime) throws WSTrustException(Code)
Create a collection of RequestSecurityTokenResponse(s)



createRSTRCollectionFrom
abstract public RequestSecurityTokenResponseCollection createRSTRCollectionFrom(Source src)(Code)
Create RSTR Collection from Source



createRSTRCollectionFrom
abstract public RequestSecurityTokenResponseCollection createRSTRCollectionFrom(Element elem)(Code)
Create RSTR Collection from Element



createRSTRCollectionFrom
abstract public RequestSecurityTokenResponseCollection createRSTRCollectionFrom(JAXBElement elem)(Code)
create an RSTR Collection from JAXBElement

NOTE: an STS Implementor can call

 JAXBElement<RequestSecurityTokenResponseCollectionType> elem= 
 ObjectFactory.createRequestSecurityTokenResponseCollection(<JAXBBean for RSTR Collection>
 
The <JAXBBean for RSTR Collection> is the one generated from the ws-trust.xsd schema The default implementation expects the packagename of the generated JAXB Beans to be fixed.




createRSTRForCancel
abstract public RequestSecurityTokenResponse createRSTRForCancel()(Code)
Create an RSTR for a Successful Token Cancellation



createRSTRForIssue
abstract public RequestSecurityTokenResponse createRSTRForIssue(URI tokenType, URI context, RequestedSecurityToken token, AppliesTo scopes, RequestedAttachedReference attachedRef, RequestedUnattachedReference unattachedRef, RequestedProofToken proofToken, Entropy entropy, Lifetime lifetime) throws WSTrustException(Code)
create an RSTR for Issue from the given arguments Any of the arguments can be null since they are all optional, but one of RequestedSecurityToken or RequestedProofToken should be returned



createRSTRForValidate
abstract public RequestSecurityTokenResponse createRSTRForValidate(URI tokenType, RequestedSecurityToken token, Status status)(Code)
create an RSTR for validate request.



createRSTRFrom
abstract public RequestSecurityTokenResponse createRSTRFrom(Source src)(Code)
create an RSTR from a Source



createRSTRFrom
abstract public RequestSecurityTokenResponse createRSTRFrom(Element elem)(Code)
create an RSTR from DOM Element



createRSTRFrom
abstract public RequestSecurityTokenResponse createRSTRFrom(JAXBElement elem)(Code)
create an RSTR from JAXBElement

NOTE: an STS Implementor can call

 JAXBElement<RequestSecurityTokenResponseType> elem= 
 ObjectFactory.createRequestSecurityTokenResponse(<JAXBBean for RSTR>);
 
The <JAXBBean for RSTR> is the one generated from the ws-trust.xsd schema The default implementation expects the packagename of the generated JAXB Beans to be fixed.




createRequestedAttachedReference
abstract public RequestedAttachedReference createRequestedAttachedReference(SecurityTokenReference str)(Code)
Create a RequestedAttachedReference.



createRequestedProofToken
abstract public RequestedProofToken createRequestedProofToken()(Code)
Create a RequestedProofToken.



createRequestedSecurityToken
abstract public RequestedSecurityToken createRequestedSecurityToken(Token token)(Code)
Create a RequestedSecurityToken.



createRequestedSecurityToken
abstract public RequestedSecurityToken createRequestedSecurityToken()(Code)



createRequestedUnattachedReference
abstract public RequestedUnattachedReference createRequestedUnattachedReference(SecurityTokenReference str)(Code)
Create a RequestedUnattachedReference.



createSecurityTokenReference
abstract public SecurityTokenReference createSecurityTokenReference(Reference ref)(Code)



createSecurityTokenReference
abstract public SecurityTokenReference createSecurityTokenReference(JAXBElement elem)(Code)



getContext
public static JAXBContext getContext()(Code)



newInstance
public static WSTrustElementFactory newInstance()(Code)



toElement
abstract public Element toElement(RequestSecurityToken rst)(Code)
Marshal an RST to a DOM Element.

Note: Useful for Dispatch Client implementations




toElement
abstract public Element toElement(RequestSecurityTokenResponse rstr)(Code)
Marshal an RSTR to DOM Element

Note: Useful for STS implementations which are JAXWS Providers




toElement
abstract public Element toElement(RequestSecurityTokenResponse rstr, Document doc)(Code)



toElement
abstract public Element toElement(RequestSecurityTokenResponseCollection rstrCollection)(Code)
Marshal an RSTR Collection to a DOM Element

Note: Useful for STS implementations which are JAXWS Providers




toElement
abstract public Element toElement(BinarySecret binarySecret)(Code)
Marshal an BinarySecret to a DOM Element

Note: Useful for STS implementations which are JAXWS Providers




toElement
abstract public Element toElement(SecurityTokenReference str, Document doc)(Code)
Marshal an STR to a DOM Element.

Note: Useful for Dispatch Client implementations




toElement
abstract public Element toElement(BinarySecret binarySecret, Document doc)(Code)
Marshal an BinarySecret to a DOM Element.

Note: Useful for Dispatch Client implementations




toJAXBElement
abstract public JAXBElement toJAXBElement(SecurityTokenReference str)(Code)
convert an SecurityTokenReference to a JAXBElement



toJAXBElement
abstract public JAXBElement toJAXBElement(RequestSecurityToken rst)(Code)
convert an RST to a JAXBElement



toJAXBElement
abstract public JAXBElement toJAXBElement(RequestSecurityTokenResponse rstr)(Code)
convert an RSTR to a JAXBElement



toJAXBElement
abstract public JAXBElement toJAXBElement(RequestSecurityTokenResponseCollection rstrCollection)(Code)
convert an RSTR Collection to a JAXBElement



toSource
abstract public Source toSource(RequestSecurityToken rst)(Code)
Marshal an RST to a Source.

Note: Useful for Dispatch Client implementations




toSource
abstract public Source toSource(RequestSecurityTokenResponse rstr)(Code)
Marshal an RSTR to a Source

Note: Useful for STS implementations which are JAXWS Providers




toSource
abstract public Source toSource(RequestSecurityTokenResponseCollection rstrCollection)(Code)
Marshal an RSTR Collection to a Source

Note: Useful for STS implementations which are JAXWS Providers




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.