|
||||||||||
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.wssx.WSTrustElementFactoryImpl
public class WSTrustElementFactoryImpl
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)
|
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. |
java.lang.Object |
createResponseFrom(javax.xml.bind.JAXBElement elem)
|
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 lt)
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.util.List 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 lt)
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 unattachedReference,
RequestedProofToken proofToken,
Entropy entropy,
Lifetime lt)
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 bs)
Marshal an BinarySecret to a DOM Element |
org.w3c.dom.Element |
toElement(BinarySecret bs,
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 lt) throws WSTrustException
createRSTForIssue
in class WSTrustElementFactory
WSTrustException
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 unattachedReference, RequestedProofToken proofToken, Entropy entropy, Lifetime lt) throws WSTrustException
createRSTRForIssue
in class WSTrustElementFactory
WSTrustException
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 lt) throws WSTrustException
createRSTRCollectionForIssue
in class WSTrustElementFactory
WSTrustException
public RequestSecurityTokenResponseCollection createRSTRCollectionForIssue(java.util.List rstrs) throws WSTrustException
WSTrustException
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 WSTrustElementFactory
WSTrustException
public IssuedTokens createIssuedTokens(RequestSecurityTokenResponseCollection issuedTokens)
createIssuedTokens
in class WSTrustElementFactory
public Entropy createEntropy(BinarySecret secret)
createEntropy
in class WSTrustElementFactory
public 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 WSTrustElementFactory
WSTrustException
public Claims createClaims(org.w3c.dom.Element elem) throws WSTrustException
createClaims
in class WSTrustElementFactory
WSTrustException
public Status createStatus(java.lang.String code, java.lang.String reason)
createStatus
in class WSTrustElementFactory
public Lifetime createLifetime(com.sun.xml.ws.security.wsu10.AttributedDateTime created, com.sun.xml.ws.security.wsu10.AttributedDateTime expires)
createLifetime
in class WSTrustElementFactory
public OnBehalfOf createOnBehalfOf(com.sun.xml.ws.security.Token oboToken)
createOnBehalfOf
in class WSTrustElementFactory
public RequestedSecurityToken createRequestedSecurityToken(com.sun.xml.ws.security.Token token)
createRequestedSecurityToken
in class WSTrustElementFactory
public RequestedSecurityToken createRequestedSecurityToken()
createRequestedSecurityToken
in class WSTrustElementFactory
public DirectReference createDirectReference(java.lang.String valueType, java.lang.String uri)
createDirectReference
in class WSTrustElementFactory
public KeyIdentifier createKeyIdentifier(java.lang.String valueType, java.lang.String encodingType)
createKeyIdentifier
in class WSTrustElementFactory
public SecurityTokenReference createSecurityTokenReference(Reference ref)
createSecurityTokenReference
in class WSTrustElementFactory
public RequestedAttachedReference createRequestedAttachedReference(SecurityTokenReference str)
createRequestedAttachedReference
in class WSTrustElementFactory
public RequestedUnattachedReference createRequestedUnattachedReference(SecurityTokenReference str)
createRequestedUnattachedReference
in class WSTrustElementFactory
public RequestedProofToken createRequestedProofToken()
createRequestedProofToken
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 WSTrustElementFactory
public RenewTarget createRenewTarget(SecurityTokenReference str)
createRenewTarget
in class WSTrustElementFactory
public CancelTarget createCancelTarget(SecurityTokenReference str)
createCancelTarget
in class WSTrustElementFactory
public ValidateTarget createValidateTarget(com.sun.xml.ws.security.Token token)
createValidateTarget
in class WSTrustElementFactory
public SecondaryParameters createSecondaryParameters()
WSTrustElementFactory
createSecondaryParameters
in class WSTrustElementFactory
public UseKey createUseKey(com.sun.xml.ws.security.Token token, java.lang.String sig)
createUseKey
in class WSTrustElementFactory
public RequestSecurityToken createRSTForCancel(java.net.URI requestType, CancelTarget target)
createRSTForCancel
in class WSTrustElementFactory
public 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 WSTrustElementFactory
public RequestSecurityToken createRST()
createRST
in class WSTrustElementFactory
public RequestSecurityTokenResponse createRSTR()
createRSTR
in class WSTrustElementFactory
public RequestSecurityTokenResponseCollection createRSTRC(java.util.List<RequestSecurityTokenResponse> rstrs)
createRSTRC
in class WSTrustElementFactory
public RequestSecurityToken createRSTFrom(javax.xml.transform.Source src)
createRSTFrom
in class WSTrustElementFactory
public RequestSecurityToken createRSTFrom(org.w3c.dom.Element elem)
createRSTFrom
in class WSTrustElementFactory
public RequestSecurityTokenResponse createRSTRFrom(javax.xml.transform.Source src)
createRSTRFrom
in class WSTrustElementFactory
public RequestSecurityTokenResponse createRSTRFrom(org.w3c.dom.Element elem)
createRSTRFrom
in class WSTrustElementFactory
public RequestSecurityTokenResponseCollection createRSTRCollectionFrom(javax.xml.transform.Source src)
createRSTRCollectionFrom
in class WSTrustElementFactory
public RequestSecurityTokenResponseCollection createRSTRCollectionFrom(org.w3c.dom.Element elem)
createRSTRCollectionFrom
in class WSTrustElementFactory
public 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 WSTrustElementFactory
public 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 WSTrustElementFactory
public 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 WSTrustElementFactory
public java.lang.Object createResponseFrom(javax.xml.bind.JAXBElement elem)
public SecurityTokenReference createSecurityTokenReference(javax.xml.bind.JAXBElement elem)
createSecurityTokenReference
in class WSTrustElementFactory
public javax.xml.bind.JAXBElement toJAXBElement(BaseSTSRequest request)
toJAXBElement
in class WSTrustElementFactory
public javax.xml.bind.JAXBElement toJAXBElement(BaseSTSResponse response)
toJAXBElement
in class WSTrustElementFactory
public javax.xml.bind.JAXBElement toJAXBElement(SecurityTokenReference str)
toJAXBElement
in class WSTrustElementFactory
public javax.xml.bind.JAXBElement toJAXBElement(RequestSecurityToken rst)
toJAXBElement
in class WSTrustElementFactory
public javax.xml.bind.JAXBElement toJAXBElement(RequestSecurityTokenResponse rstr)
toJAXBElement
in class WSTrustElementFactory
public javax.xml.bind.JAXBElement toJAXBElement(Entropy entropy)
public javax.xml.bind.JAXBElement toJAXBElement(RequestSecurityTokenResponseCollection rstrCollection)
toJAXBElement
in class WSTrustElementFactory
public javax.xml.transform.Source toSource(BaseSTSRequest request)
toSource
in class WSTrustElementFactory
public javax.xml.transform.Source toSource(BaseSTSResponse response)
toSource
in class WSTrustElementFactory
public javax.xml.transform.Source toSource(RequestSecurityToken rst)
Note: Useful for Dispatch Client implementations
toSource
in class WSTrustElementFactory
public javax.xml.transform.Source toSource(RequestSecurityTokenResponse rstr)
Note: Useful for STS implementations which are JAXWS Providers
toSource
in class WSTrustElementFactory
public javax.xml.transform.Source toSource(RequestSecurityTokenResponseCollection rstrCollection)
Note: Useful for STS implementations which are JAXWS Providers
toSource
in class WSTrustElementFactory
public org.w3c.dom.Element toElement(BaseSTSRequest request)
toElement
in class WSTrustElementFactory
public org.w3c.dom.Element toElement(BaseSTSResponse response)
toElement
in class WSTrustElementFactory
public org.w3c.dom.Element toElement(RequestSecurityToken rst)
Note: Useful for Dispatch Client implementations
toElement
in class WSTrustElementFactory
public 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 WSTrustElementFactory
public org.w3c.dom.Element toElement(RequestSecurityTokenResponseCollection rstrCollection)
Note: Useful for STS implementations which are JAXWS Providers
toElement
in class WSTrustElementFactory
public org.w3c.dom.Element toElement(BinarySecret bs)
WSTrustElementFactory
Note: 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 bs, org.w3c.dom.Document doc)
Note: Useful for Dispatch Client implementations
toElement
in class WSTrustElementFactory
public 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 |