Class WSTrustElementFactoryImpl
- Direct Known Subclasses:
WSSCElementFactory13
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateActAs(Token actAsToken) createBinarySecret(byte[] rawValue, String type) createBinarySecret(Element elem) createClaims(Claims claims) createClaims(Element elem) createDirectReference(String valueType, String uri) Create an Entropy with an xenc:EncryptedKeycreateEntropy(BinarySecret secret) Create an Entropy with a BinarySecretcreateIssuedTokens(RequestSecurityTokenResponseCollection issuedTokens) Create a wst:IssuedTokens objectcreateKeyIdentifier(String valueType, String encodingType) createLifetime(AttributedDateTime created, AttributedDateTime expires) Create a Lifetime.createOnBehalfOf(Token oboToken) Create a RequestedAttachedReference.Create a RequestedProofToken.Create a RequestedSecurityToken.Create a RequestedSecurityToken.Create a RequestedUnattachedReference.createResponseFrom(jakarta.xml.bind.JAXBElement elem) Create an Empty RSTcreateRSTForCancel(URI requestType, CancelTarget target) Create an RST for Token CancellationcreateRSTForIssue(URI tokenType, URI requestType, URI context, 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 presentcreateRSTForRenew(URI tokenType, URI requestType, URI context, RenewTarget target, AllowPostdating apd, Renewing renewingInfo) Create an RST for a Renewal RequestcreateRSTForValidate(URI tokenType, URI requestType) Create an RST for Token ValidationcreateRSTFrom(jakarta.xml.bind.JAXBElement elem) create an RST from JAXBElementcreateRSTFrom(Source src) create an RST from a SourcecreateRSTFrom(Element elem) create an RST from DOM ElementCreate an Empty RSTRcreateRSTRCollectionForIssue(URI tokenType, URI context, RequestedSecurityToken token, AppliesTo scopes, RequestedAttachedReference attached, RequestedUnattachedReference unattached, RequestedProofToken proofToken, Entropy entropy, Lifetime lt) Create a collection of RequestSecurityTokenResponse(s)createRSTRCollectionForIssue(List rstrs) createRSTRCollectionFrom(jakarta.xml.bind.JAXBElement elem) create an RSTR Collection from JAXBElementCreate RSTR Collection from SourceCreate RSTR Collection from ElementCreate an RSTR for a Successful Token CancellationcreateRSTRForIssue(URI tokenType, URI context, RequestedSecurityToken token, AppliesTo scopes, RequestedAttachedReference attachedReference, RequestedUnattachedReference unattachedReference, RequestedProofToken proofToken, Entropy entropy, Lifetime lt) Create an RSTR for Issue from the given arguments.createRSTRForRenew(URI tokenType, URI context, RequestedSecurityToken token, RequestedAttachedReference attachedReference, RequestedUnattachedReference unattachedRef, RequestedProofToken proofToken, Entropy entropy, Lifetime lifetime) Create an RSTR for Renew from the given arguments.createRSTRForValidate(URI tokenType, RequestedSecurityToken token, Status status) create an RSTR for validate request.createRSTRFrom(jakarta.xml.bind.JAXBElement elem) create an RSTR from JAXBElementcreateRSTRFrom(Source src) create an RSTR from a SourcecreateRSTRFrom(Element elem) create an RSTR from DOM ElementcreateSecurityContextToken(URI identifier, String instance, String wsuId) createSecurityTokenReference(jakarta.xml.bind.JAXBElement elem) createStatus(String code, String reason) createUseKey(Token token, String sig) createValidateTarget(Token token) jakarta.xml.bind.MarshallertoElement(BaseSTSRequest request) toElement(BaseSTSResponse response) toElement(BinarySecret bs, Document doc) Marshal an BinarySecret to a DOM Element.Marshal an RST to a DOM Element.Marshal an RSTR to DOM ElementtoElement(RequestSecurityTokenResponseCollection rstrCollection) Marshal an RSTR Collection to a DOM ElementtoElement(RequestSecurityTokenResponse rstr, Document doc) toElement(SecurityTokenReference str, Document doc) Marshal an STR to a DOM Element.jakarta.xml.bind.JAXBElementtoJAXBElement(BaseSTSRequest request) jakarta.xml.bind.JAXBElementtoJAXBElement(BaseSTSResponse response) jakarta.xml.bind.JAXBElementtoJAXBElement(Entropy entropy) convert a Entropy to a JAXBElementjakarta.xml.bind.JAXBElementconvert an RST to a JAXBElementjakarta.xml.bind.JAXBElementconvert an RSTR to a JAXBElementjakarta.xml.bind.JAXBElementtoJAXBElement(RequestSecurityTokenResponseCollection rstrCollection) convert an RSTR Collection to a JAXBElementjakarta.xml.bind.JAXBElementconvert an SecurityTokenReference to a JAXBElementtoSource(BaseSTSRequest request) toSource(BaseSTSResponse response) Marshal an RST to a Source.Marshal an RSTR to a SourcetoSource(RequestSecurityTokenResponseCollection rstrCollection) Marshal an RSTR Collection to a SourceMethods inherited from class com.sun.xml.ws.security.trust.WSTrustElementFactory
getContext, getContext, newInstance, newInstance, newInstance, newInstance, toElement
-
Constructor Details
-
WSTrustElementFactoryImpl
public WSTrustElementFactoryImpl()
-
-
Method Details
-
createRSTForIssue
public RequestSecurityToken createRSTForIssue(URI tokenType, URI requestType, URI context, 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- Specified by:
createRSTForIssuein classWSTrustElementFactory
-
createRSTRForIssue
public RequestSecurityTokenResponse createRSTRForIssue(URI tokenType, URI context, RequestedSecurityToken token, AppliesTo scopes, RequestedAttachedReference attachedReference, RequestedUnattachedReference unattachedReference, RequestedProofToken proofToken, Entropy entropy, Lifetime lt) Create an RSTR for Issue from the given arguments. TokenType should be Issue. Any of the arguments can be null since they are all optional, but one of RequestedSecurityToken or RequestedProofToken should be returned- Specified by:
createRSTRForIssuein classWSTrustElementFactory
-
createRSTRCollectionForIssue
public RequestSecurityTokenResponseCollection createRSTRCollectionForIssue(URI tokenType, URI context, RequestedSecurityToken token, AppliesTo scopes, RequestedAttachedReference attached, RequestedUnattachedReference unattached, RequestedProofToken proofToken, Entropy entropy, Lifetime lt) Create a collection of RequestSecurityTokenResponse(s)- Specified by:
createRSTRCollectionForIssuein classWSTrustElementFactory
-
createRSTRCollectionForIssue
-
createRSTRForRenew
public RequestSecurityTokenResponse createRSTRForRenew(URI tokenType, URI context, RequestedSecurityToken token, RequestedAttachedReference attachedReference, RequestedUnattachedReference unattachedRef, RequestedProofToken proofToken, Entropy entropy, Lifetime lifetime) Create an RSTR for Renew from the given arguments. TokenType should be Issue. Any of the arguments can be null since they are all optional, but one of RequestedSecurityToken or RequestedProofToken should be returned- Specified by:
createRSTRForRenewin classWSTrustElementFactory
-
createIssuedTokens
Create a wst:IssuedTokens object- Specified by:
createIssuedTokensin classWSTrustElementFactory
-
createEntropy
Create an Entropy with a BinarySecret- Specified by:
createEntropyin classWSTrustElementFactory
-
createEntropy
Create an Entropy with an xenc:EncryptedKey- Specified by:
createEntropyin classWSTrustElementFactory
-
createBinarySecret
- Specified by:
createBinarySecretin classWSTrustElementFactory
-
createBinarySecret
- Specified by:
createBinarySecretin classWSTrustElementFactory- Throws:
WSTrustException
-
createClaims
- Specified by:
createClaimsin classWSTrustElementFactory- Throws:
WSTrustException
-
createClaims
- Specified by:
createClaimsin classWSTrustElementFactory
-
createClaims
- Specified by:
createClaimsin classWSTrustElementFactory
-
createStatus
- Specified by:
createStatusin classWSTrustElementFactory
-
createLifetime
Create a Lifetime.- Specified by:
createLifetimein classWSTrustElementFactory
-
createOnBehalfOf
- Specified by:
createOnBehalfOfin classWSTrustElementFactory
-
createActAs
- Specified by:
createActAsin classWSTrustElementFactory
-
createRequestedSecurityToken
Create a RequestedSecurityToken.- Specified by:
createRequestedSecurityTokenin classWSTrustElementFactory
-
createRequestedSecurityToken
Create a RequestedSecurityToken.- Specified by:
createRequestedSecurityTokenin classWSTrustElementFactory
-
createDirectReference
- Specified by:
createDirectReferencein classWSTrustElementFactory
-
createKeyIdentifier
- Specified by:
createKeyIdentifierin classWSTrustElementFactory
-
createSecurityTokenReference
- Specified by:
createSecurityTokenReferencein classWSTrustElementFactory
-
createRequestedAttachedReference
Create a RequestedAttachedReference.- Specified by:
createRequestedAttachedReferencein classWSTrustElementFactory
-
createRequestedUnattachedReference
Create a RequestedUnattachedReference.- Specified by:
createRequestedUnattachedReferencein classWSTrustElementFactory
-
createRequestedProofToken
Create a RequestedProofToken.- Specified by:
createRequestedProofTokenin classWSTrustElementFactory
-
createRSTForRenew
public RequestSecurityToken createRSTForRenew(URI tokenType, URI requestType, URI context, RenewTarget target, AllowPostdating apd, Renewing renewingInfo) Create an RST for a Renewal Request- Specified by:
createRSTForRenewin classWSTrustElementFactory
-
createRenewTarget
- Specified by:
createRenewTargetin classWSTrustElementFactory
-
createCancelTarget
- Specified by:
createCancelTargetin classWSTrustElementFactory
-
createValidateTarget
- Specified by:
createValidateTargetin classWSTrustElementFactory
-
createSecondaryParameters
- Specified by:
createSecondaryParametersin classWSTrustElementFactory
-
createUseKey
- Specified by:
createUseKeyin classWSTrustElementFactory
-
createRSTForCancel
Create an RST for Token Cancellation- Specified by:
createRSTForCancelin classWSTrustElementFactory
-
createRSTRForCancel
Create an RSTR for a Successful Token Cancellation- Specified by:
createRSTRForCancelin classWSTrustElementFactory
-
createRSTForValidate
Create an RST for Token ValidationTODO: 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.
- Specified by:
createRSTForValidatein classWSTrustElementFactory
-
createRSTRForValidate
public RequestSecurityTokenResponse createRSTRForValidate(URI tokenType, RequestedSecurityToken token, Status status) create an RSTR for validate request.- Specified by:
createRSTRForValidatein classWSTrustElementFactory
-
createRST
Create an Empty RST- Specified by:
createRSTin classWSTrustElementFactory
-
createRSTR
Create an Empty RSTR- Specified by:
createRSTRin classWSTrustElementFactory
-
createRSTRC
- Specified by:
createRSTRCin classWSTrustElementFactory
-
createRSTFrom
create an RST from a Source- Specified by:
createRSTFromin classWSTrustElementFactory
-
createRSTFrom
create an RST from DOM Element- Specified by:
createRSTFromin classWSTrustElementFactory
-
createRSTRFrom
create an RSTR from a Source- Specified by:
createRSTRFromin classWSTrustElementFactory
-
createRSTRFrom
create an RSTR from DOM Element- Specified by:
createRSTRFromin classWSTrustElementFactory
-
createRSTRCollectionFrom
Create RSTR Collection from Source- Specified by:
createRSTRCollectionFromin classWSTrustElementFactory
-
createRSTRCollectionFrom
Create RSTR Collection from Element- Specified by:
createRSTRCollectionFromin classWSTrustElementFactory
-
createRSTFrom
create an RST from JAXBElementNOTE: 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.- Specified by:
createRSTFromin classWSTrustElementFactory
-
createRSTRFrom
create an RSTR from JAXBElementNOTE: 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.- Specified by:
createRSTRFromin classWSTrustElementFactory
-
createRSTRCollectionFrom
public RequestSecurityTokenResponseCollection createRSTRCollectionFrom(jakarta.xml.bind.JAXBElement elem) create an RSTR Collection from JAXBElementNOTE: 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.- Specified by:
createRSTRCollectionFromin classWSTrustElementFactory
-
createResponseFrom
-
createSecurityTokenReference
- Specified by:
createSecurityTokenReferencein classWSTrustElementFactory
-
createSecurityContextToken
public SecurityContextToken createSecurityContextToken(URI identifier, String instance, String wsuId) - Specified by:
createSecurityContextTokenin classWSTrustElementFactory
-
toJAXBElement
- Specified by:
toJAXBElementin classWSTrustElementFactory
-
toJAXBElement
- Specified by:
toJAXBElementin classWSTrustElementFactory
-
toJAXBElement
convert an SecurityTokenReference to a JAXBElement- Specified by:
toJAXBElementin classWSTrustElementFactory
-
toJAXBElement
convert an RST to a JAXBElement- Specified by:
toJAXBElementin classWSTrustElementFactory
-
toJAXBElement
convert an RSTR to a JAXBElement- Specified by:
toJAXBElementin classWSTrustElementFactory
-
toJAXBElement
convert a Entropy to a JAXBElement -
toJAXBElement
public jakarta.xml.bind.JAXBElement toJAXBElement(RequestSecurityTokenResponseCollection rstrCollection) convert an RSTR Collection to a JAXBElement- Specified by:
toJAXBElementin classWSTrustElementFactory
-
toSource
- Specified by:
toSourcein classWSTrustElementFactory
-
toSource
- Specified by:
toSourcein classWSTrustElementFactory
-
toSource
Marshal an RST to a Source.Note: Useful for Dispatch Client implementations
- Specified by:
toSourcein classWSTrustElementFactory
-
toSource
Marshal an RSTR to a SourceNote: Useful for STS implementations which are JAXWS Providers
- Specified by:
toSourcein classWSTrustElementFactory
-
toSource
Marshal an RSTR Collection to a SourceNote: Useful for STS implementations which are JAXWS Providers
- Specified by:
toSourcein classWSTrustElementFactory
-
toElement
- Specified by:
toElementin classWSTrustElementFactory
-
toElement
- Specified by:
toElementin classWSTrustElementFactory
-
toElement
Marshal an RST to a DOM Element.Note: Useful for Dispatch Client implementations
- Specified by:
toElementin classWSTrustElementFactory
-
toElement
Marshal an RSTR to DOM ElementNote: Useful for STS implementations which are JAXWS Providers
- Specified by:
toElementin classWSTrustElementFactory
-
toElement
- Specified by:
toElementin classWSTrustElementFactory
-
toElement
Marshal an RSTR Collection to a DOM ElementNote: Useful for STS implementations which are JAXWS Providers
- Specified by:
toElementin classWSTrustElementFactory
-
toElement
- Specified by:
toElementin classWSTrustElementFactory
-
toElement
Marshal an STR to a DOM Element.Note: Useful for Dispatch Client implementations
- Specified by:
toElementin classWSTrustElementFactory
-
toElement
Marshal an BinarySecret to a DOM Element.Note: Useful for Dispatch Client implementations
- Specified by:
toElementin classWSTrustElementFactory
-
getMarshaller
public jakarta.xml.bind.Marshaller getMarshaller()- Specified by:
getMarshallerin classWSTrustElementFactory
-