|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.security.trust.WSTrustElementFactory
com.sun.xml.ws.security.trust.impl.WSTrustElementFactoryImpl
public class WSTrustElementFactoryImpl
A Factory for creating the WS-Trust schema elements, and marshalling/un-marshalling them.
| Constructor Summary | |
|---|---|
WSTrustElementFactoryImpl()
|
|
| Method Summary | |
|---|---|
BinarySecret |
createBinarySecret(byte[] rawValue,
java.lang.String type)
Create a BinarySecret |
BinarySecret |
createBinarySecret(org.w3c.dom.Element elem)
Create a BinarySecret |
CancelTarget |
createCancelTarget(SecurityTokenReference str)
|
Claims |
createClaims(org.w3c.dom.Element elem)
|
DirectReference |
createDirectReference(java.lang.String valueType,
java.lang.String uri)
|
DirectReference |
createDirectReference(java.lang.String valueType,
java.lang.String uri,
java.lang.String instanceId)
|
Entropy |
createEntropy(BinarySecret secret)
Create an Entropy with a BinarySecret |
Entropy |
createEntropy(com.sun.xml.ws.security.EncryptedKey key)
Create an Entropy with an xenc:EncryptedKey |
IssuedTokens |
createIssuedTokens(RequestSecurityTokenResponseCollection issuedTokens)
Create a wst:IssuedTokens object |
KeyIdentifier |
createKeyIdentifier(java.lang.String valueType,
java.lang.String encodingType)
|
Lifetime |
createLifetime(com.sun.xml.ws.security.wsu10.AttributedDateTime created,
com.sun.xml.ws.security.wsu10.AttributedDateTime expires)
Create a Lifetime. |
OnBehalfOf |
createOnBehalfOf(com.sun.xml.ws.security.Token oboToken)
|
RenewTarget |
createRenewTarget(SecurityTokenReference str)
|
RequestedAttachedReference |
createRequestedAttachedReference(SecurityTokenReference str)
Create a RequestedAttachedReference. |
RequestedProofToken |
createRequestedProofToken()
Create a RequestedProofToken. |
RequestedSecurityToken |
createRequestedSecurityToken()
Create a RequestedSecurityToken. |
RequestedSecurityToken |
createRequestedSecurityToken(com.sun.xml.ws.security.Token token)
Create a RequestedSecurityToken. |
RequestedUnattachedReference |
createRequestedUnattachedReference(SecurityTokenReference str)
Create a RequestedUnattachedReference. |
RequestSecurityToken |
createRST()
Create an Empty RST |
RequestSecurityToken |
createRSTForCancel(java.net.URI requestType,
CancelTarget target)
Create an RST for Token Cancellation |
RequestSecurityToken |
createRSTForIssue(java.net.URI tokenType,
java.net.URI requestType,
java.net.URI context,
com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes,
Claims claims,
Entropy entropy,
Lifetime lifetime)
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 |
RequestSecurityToken |
createRSTForRenew(java.net.URI tokenType,
java.net.URI requestType,
java.net.URI context,
RenewTarget target,
AllowPostdating apd,
Renewing renewingInfo)
Create an RST for a Renewal Request |
RequestSecurityToken |
createRSTForValidate(java.net.URI tokenType,
java.net.URI requestType)
Create an RST for Token Validation |
RequestSecurityToken |
createRSTFrom(org.w3c.dom.Element elem)
create an RST from DOM Element |
RequestSecurityToken |
createRSTFrom(javax.xml.bind.JAXBElement elem)
create an RST from JAXBElement |
RequestSecurityToken |
createRSTFrom(javax.xml.transform.Source src)
create an RST from a Source |
RequestSecurityTokenResponse |
createRSTR()
Create an Empty RSTR |
RequestSecurityTokenResponseCollection |
createRSTRC(java.util.List<RequestSecurityTokenResponse> rstrs)
|
RequestSecurityTokenResponseCollection |
createRSTRCollectionForIssue(java.net.URI tokenType,
java.net.URI context,
RequestedSecurityToken token,
com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes,
RequestedAttachedReference attached,
RequestedUnattachedReference unattached,
RequestedProofToken proofToken,
Entropy entropy,
Lifetime lifetime)
Create a collection of RequestSecurityTokenResponse(s) |
RequestSecurityTokenResponseCollection |
createRSTRCollectionFrom(org.w3c.dom.Element elem)
Create RSTR Collection from Element |
RequestSecurityTokenResponseCollection |
createRSTRCollectionFrom(javax.xml.bind.JAXBElement elem)
create an RSTR Collection from JAXBElement |
RequestSecurityTokenResponseCollection |
createRSTRCollectionFrom(javax.xml.transform.Source src)
Create RSTR Collection from Source |
RequestSecurityTokenResponse |
createRSTRForCancel()
Create an RSTR for a Successful Token Cancellation |
RequestSecurityTokenResponse |
createRSTRForIssue(java.net.URI tokenType,
java.net.URI context,
RequestedSecurityToken token,
com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes,
RequestedAttachedReference attachedReference,
RequestedUnattachedReference unattachedRef,
RequestedProofToken proofToken,
Entropy entropy,
Lifetime lifetime)
Create an RSTR for Issue from the given arguments. |
RequestSecurityTokenResponse |
createRSTRForRenew(java.net.URI tokenType,
java.net.URI context,
RequestedSecurityToken token,
RequestedAttachedReference attachedReference,
RequestedUnattachedReference unattachedRef,
RequestedProofToken proofToken,
Entropy entropy,
Lifetime lifetime)
Create an RSTR for Renew from the given arguments. |
RequestSecurityTokenResponse |
createRSTRForValidate(java.net.URI tokenType,
RequestedSecurityToken token,
Status status)
create an RSTR for validate request. |
RequestSecurityTokenResponse |
createRSTRFrom(org.w3c.dom.Element elem)
create an RSTR from DOM Element |
RequestSecurityTokenResponse |
createRSTRFrom(javax.xml.bind.JAXBElement elem)
create an RSTR from JAXBElement |
RequestSecurityTokenResponse |
createRSTRFrom(javax.xml.transform.Source src)
create an RSTR from a Source |
SecondaryParameters |
createSecondaryParameters()
Create SecondaryParameters |
SecurityTokenReference |
createSecurityTokenReference(javax.xml.bind.JAXBElement elem)
|
SecurityTokenReference |
createSecurityTokenReference(Reference ref)
|
Status |
createStatus(java.lang.String code,
java.lang.String reason)
|
UseKey |
createUseKey(com.sun.xml.ws.security.Token token,
java.lang.String sig)
|
ValidateTarget |
createValidateTarget(com.sun.xml.ws.security.Token token)
|
org.w3c.dom.Element |
toElement(BaseSTSRequest request)
|
org.w3c.dom.Element |
toElement(BaseSTSResponse response)
|
org.w3c.dom.Element |
toElement(BinarySecret secret)
Marshal an BinarySecret to a DOM Element |
org.w3c.dom.Element |
toElement(BinarySecret secret,
org.w3c.dom.Document doc)
Marshal an BinarySecret to a DOM Element. |
org.w3c.dom.Element |
toElement(javax.xml.bind.JAXBElement jaxbEle)
|
org.w3c.dom.Element |
toElement(RequestSecurityToken rst)
Marshal an RST to a DOM Element. |
org.w3c.dom.Element |
toElement(RequestSecurityTokenResponse rstr)
Marshal an RSTR to DOM Element |
org.w3c.dom.Element |
toElement(RequestSecurityTokenResponseCollection rstrCollection)
Marshal an RSTR Collection to a DOM Element |
org.w3c.dom.Element |
toElement(RequestSecurityTokenResponse rstr,
org.w3c.dom.Document doc)
|
org.w3c.dom.Element |
toElement(SecurityTokenReference str,
org.w3c.dom.Document doc)
Marshal an STR to a DOM Element. |
javax.xml.bind.JAXBElement |
toJAXBElement(BaseSTSRequest request)
|
javax.xml.bind.JAXBElement |
toJAXBElement(BaseSTSResponse response)
|
javax.xml.bind.JAXBElement |
toJAXBElement(Entropy entropy)
convert a Entropy to a JAXBElement |
javax.xml.bind.JAXBElement |
toJAXBElement(RequestSecurityToken rst)
convert an RST to a JAXBElement |
javax.xml.bind.JAXBElement |
toJAXBElement(RequestSecurityTokenResponse rstr)
convert an RSTR to a JAXBElement |
javax.xml.bind.JAXBElement |
toJAXBElement(RequestSecurityTokenResponseCollection rstrCollection)
convert an RSTR Collection to a JAXBElement |
javax.xml.bind.JAXBElement |
toJAXBElement(SecurityTokenReference str)
convert an SecurityTokenReference to a JAXBElement |
javax.xml.transform.Source |
toSource(BaseSTSRequest request)
|
javax.xml.transform.Source |
toSource(BaseSTSResponse response)
|
javax.xml.transform.Source |
toSource(RequestSecurityToken rst)
Marshal an RST to a Source. |
javax.xml.transform.Source |
toSource(RequestSecurityTokenResponse rstr)
Marshal an RSTR to a Source |
javax.xml.transform.Source |
toSource(RequestSecurityTokenResponseCollection rstrCollection)
Marshal an RSTR Collection to a Source |
| Methods inherited from class com.sun.xml.ws.security.trust.WSTrustElementFactory |
|---|
getContext, getContext, newInstance, newInstance, newInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WSTrustElementFactoryImpl()
| Method Detail |
|---|
public RequestSecurityToken createRSTForIssue(java.net.URI tokenType,
java.net.URI requestType,
java.net.URI context,
com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes,
Claims claims,
Entropy entropy,
Lifetime lifetime)
throws WSTrustException
createRSTForIssue in class WSTrustElementFactoryWSTrustException
public RequestSecurityTokenResponse createRSTRForIssue(java.net.URI tokenType,
java.net.URI context,
RequestedSecurityToken token,
com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes,
RequestedAttachedReference attachedReference,
RequestedUnattachedReference unattachedRef,
RequestedProofToken proofToken,
Entropy entropy,
Lifetime lifetime)
throws WSTrustException
createRSTRForIssue in class WSTrustElementFactoryWSTrustException
public RequestSecurityTokenResponseCollection createRSTRCollectionForIssue(java.net.URI tokenType,
java.net.URI context,
RequestedSecurityToken token,
com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes,
RequestedAttachedReference attached,
RequestedUnattachedReference unattached,
RequestedProofToken proofToken,
Entropy entropy,
Lifetime lifetime)
throws WSTrustException
createRSTRCollectionForIssue in class WSTrustElementFactoryWSTrustException
public RequestSecurityTokenResponse createRSTRForRenew(java.net.URI tokenType,
java.net.URI context,
RequestedSecurityToken token,
RequestedAttachedReference attachedReference,
RequestedUnattachedReference unattachedRef,
RequestedProofToken proofToken,
Entropy entropy,
Lifetime lifetime)
throws WSTrustException
createRSTRForRenew in class WSTrustElementFactoryWSTrustExceptionpublic IssuedTokens createIssuedTokens(RequestSecurityTokenResponseCollection issuedTokens)
createIssuedTokens in class WSTrustElementFactorypublic OnBehalfOf createOnBehalfOf(com.sun.xml.ws.security.Token oboToken)
createOnBehalfOf in class WSTrustElementFactorypublic ValidateTarget createValidateTarget(com.sun.xml.ws.security.Token token)
createValidateTarget in class WSTrustElementFactorypublic Entropy createEntropy(BinarySecret secret)
createEntropy in class WSTrustElementFactorypublic Entropy createEntropy(com.sun.xml.ws.security.EncryptedKey key)
createEntropy in class WSTrustElementFactory
public BinarySecret createBinarySecret(byte[] rawValue,
java.lang.String type)
WSTrustElementFactory
createBinarySecret in class WSTrustElementFactory
public BinarySecret createBinarySecret(org.w3c.dom.Element elem)
throws WSTrustException
WSTrustElementFactory
createBinarySecret in class WSTrustElementFactoryWSTrustException
public Lifetime createLifetime(com.sun.xml.ws.security.wsu10.AttributedDateTime created,
com.sun.xml.ws.security.wsu10.AttributedDateTime expires)
createLifetime in class WSTrustElementFactory
public Claims createClaims(org.w3c.dom.Element elem)
throws WSTrustException
createClaims in class WSTrustElementFactoryWSTrustException
public Status createStatus(java.lang.String code,
java.lang.String reason)
createStatus in class WSTrustElementFactorypublic RequestedSecurityToken createRequestedSecurityToken(com.sun.xml.ws.security.Token token)
createRequestedSecurityToken in class WSTrustElementFactorypublic RequestedSecurityToken createRequestedSecurityToken()
createRequestedSecurityToken in class WSTrustElementFactory
public DirectReference createDirectReference(java.lang.String valueType,
java.lang.String uri)
createDirectReference in class WSTrustElementFactory
public DirectReference createDirectReference(java.lang.String valueType,
java.lang.String uri,
java.lang.String instanceId)
public KeyIdentifier createKeyIdentifier(java.lang.String valueType,
java.lang.String encodingType)
createKeyIdentifier in class WSTrustElementFactorypublic SecurityTokenReference createSecurityTokenReference(Reference ref)
createSecurityTokenReference in class WSTrustElementFactorypublic RequestedAttachedReference createRequestedAttachedReference(SecurityTokenReference str)
createRequestedAttachedReference in class WSTrustElementFactorypublic RequestedUnattachedReference createRequestedUnattachedReference(SecurityTokenReference str)
createRequestedUnattachedReference in class WSTrustElementFactorypublic RequestedProofToken createRequestedProofToken()
createRequestedProofToken in class WSTrustElementFactorypublic SecondaryParameters createSecondaryParameters()
createSecondaryParameters in class WSTrustElementFactory
public UseKey createUseKey(com.sun.xml.ws.security.Token token,
java.lang.String sig)
createUseKey in class WSTrustElementFactory
public RequestSecurityToken createRSTForRenew(java.net.URI tokenType,
java.net.URI requestType,
java.net.URI context,
RenewTarget target,
AllowPostdating apd,
Renewing renewingInfo)
createRSTForRenew in class WSTrustElementFactorypublic RenewTarget createRenewTarget(SecurityTokenReference str)
createRenewTarget in class WSTrustElementFactorypublic CancelTarget createCancelTarget(SecurityTokenReference str)
createCancelTarget in class WSTrustElementFactory
public RequestSecurityToken createRSTForCancel(java.net.URI requestType,
CancelTarget target)
createRSTForCancel in class WSTrustElementFactorypublic RequestSecurityTokenResponse createRSTRForCancel()
createRSTRForCancel in class WSTrustElementFactory
public RequestSecurityToken createRSTForValidate(java.net.URI tokenType,
java.net.URI requestType)
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.
createRSTForValidate in class WSTrustElementFactory
public RequestSecurityTokenResponse createRSTRForValidate(java.net.URI tokenType,
RequestedSecurityToken token,
Status status)
createRSTRForValidate in class WSTrustElementFactorypublic RequestSecurityToken createRST()
createRST in class WSTrustElementFactorypublic RequestSecurityTokenResponse createRSTR()
createRSTR in class WSTrustElementFactorypublic RequestSecurityTokenResponseCollection createRSTRC(java.util.List<RequestSecurityTokenResponse> rstrs)
createRSTRC in class WSTrustElementFactorypublic RequestSecurityToken createRSTFrom(javax.xml.transform.Source src)
createRSTFrom in class WSTrustElementFactorypublic RequestSecurityToken createRSTFrom(org.w3c.dom.Element elem)
createRSTFrom in class WSTrustElementFactorypublic RequestSecurityTokenResponse createRSTRFrom(javax.xml.transform.Source src)
createRSTRFrom in class WSTrustElementFactorypublic RequestSecurityTokenResponse createRSTRFrom(org.w3c.dom.Element elem)
createRSTRFrom in class WSTrustElementFactorypublic RequestSecurityTokenResponseCollection createRSTRCollectionFrom(javax.xml.transform.Source src)
createRSTRCollectionFrom in class WSTrustElementFactorypublic RequestSecurityTokenResponseCollection createRSTRCollectionFrom(org.w3c.dom.Element elem)
createRSTRCollectionFrom in class WSTrustElementFactorypublic RequestSecurityToken createRSTFrom(javax.xml.bind.JAXBElement elem)
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.
createRSTFrom in class WSTrustElementFactorypublic RequestSecurityTokenResponse createRSTRFrom(javax.xml.bind.JAXBElement elem)
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.
createRSTRFrom in class WSTrustElementFactorypublic RequestSecurityTokenResponseCollection createRSTRCollectionFrom(javax.xml.bind.JAXBElement elem)
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.
createRSTRCollectionFrom in class WSTrustElementFactorypublic SecurityTokenReference createSecurityTokenReference(javax.xml.bind.JAXBElement elem)
createSecurityTokenReference in class WSTrustElementFactorypublic javax.xml.bind.JAXBElement toJAXBElement(BaseSTSRequest request)
toJAXBElement in class WSTrustElementFactorypublic javax.xml.bind.JAXBElement toJAXBElement(BaseSTSResponse response)
toJAXBElement in class WSTrustElementFactorypublic javax.xml.bind.JAXBElement toJAXBElement(SecurityTokenReference str)
toJAXBElement in class WSTrustElementFactorypublic javax.xml.bind.JAXBElement toJAXBElement(RequestSecurityToken rst)
toJAXBElement in class WSTrustElementFactorypublic javax.xml.bind.JAXBElement toJAXBElement(RequestSecurityTokenResponse rstr)
toJAXBElement in class WSTrustElementFactorypublic javax.xml.bind.JAXBElement toJAXBElement(Entropy entropy)
public javax.xml.bind.JAXBElement toJAXBElement(RequestSecurityTokenResponseCollection rstrCollection)
toJAXBElement in class WSTrustElementFactorypublic javax.xml.transform.Source toSource(BaseSTSRequest request)
toSource in class WSTrustElementFactorypublic javax.xml.transform.Source toSource(BaseSTSResponse response)
toSource in class WSTrustElementFactorypublic javax.xml.transform.Source toSource(RequestSecurityToken rst)
Note: Useful for Dispatch Client implementations
toSource in class WSTrustElementFactorypublic javax.xml.transform.Source toSource(RequestSecurityTokenResponse rstr)
Note: Useful for STS implementations which are JAXWS Providers
toSource in class WSTrustElementFactorypublic javax.xml.transform.Source toSource(RequestSecurityTokenResponseCollection rstrCollection)
Note: Useful for STS implementations which are JAXWS Providers
toSource in class WSTrustElementFactorypublic org.w3c.dom.Element toElement(BaseSTSRequest request)
toElement in class WSTrustElementFactorypublic org.w3c.dom.Element toElement(BaseSTSResponse response)
toElement in class WSTrustElementFactorypublic org.w3c.dom.Element toElement(RequestSecurityToken rst)
Note: Useful for Dispatch Client implementations
toElement in class WSTrustElementFactorypublic org.w3c.dom.Element toElement(RequestSecurityTokenResponse rstr)
Note: Useful for STS implementations which are JAXWS Providers
toElement in class WSTrustElementFactory
public org.w3c.dom.Element toElement(RequestSecurityTokenResponse rstr,
org.w3c.dom.Document doc)
toElement in class WSTrustElementFactorypublic org.w3c.dom.Element toElement(RequestSecurityTokenResponseCollection rstrCollection)
Note: Useful for STS implementations which are JAXWS Providers
toElement in class WSTrustElementFactorypublic org.w3c.dom.Element toElement(BinarySecret secret)
WSTrustElementFactoryNote: Useful for STS implementations which are JAXWS Providers
toElement in class WSTrustElementFactory
public org.w3c.dom.Element toElement(SecurityTokenReference str,
org.w3c.dom.Document doc)
Note: Useful for Dispatch Client implementations
toElement in class WSTrustElementFactory
public org.w3c.dom.Element toElement(BinarySecret secret,
org.w3c.dom.Document doc)
Note: Useful for Dispatch Client implementations
toElement in class WSTrustElementFactorypublic org.w3c.dom.Element toElement(javax.xml.bind.JAXBElement jaxbEle)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||