|
||||||||||
| 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
public abstract class WSTrustElementFactory
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();
| Constructor Summary | |
|---|---|
WSTrustElementFactory()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WSTrustElementFactory()
| Method Detail |
|---|
public static JAXBContext getContext()
public static JAXBContext getContext(WSTrustVersion wstVer)
public static WSTrustElementFactory newInstance()
public static WSTrustElementFactory newInstance(String nsUri)
public static WSTrustElementFactory newInstance(WSTrustVersion wstVer)
public static WSTrustElementFactory newInstance(WSSCVersion wsscVer)
public abstract RequestSecurityToken createRSTForIssue(URI tokenType,
URI requestType,
URI context,
AppliesTo scopes,
Claims claims,
Entropy entropy,
Lifetime lifetime)
throws WSTrustException
WSTrustException
public abstract RequestSecurityTokenResponse createRSTRForIssue(URI tokenType,
URI context,
RequestedSecurityToken token,
AppliesTo scopes,
RequestedAttachedReference attachedRef,
RequestedUnattachedReference unattachedRef,
RequestedProofToken proofToken,
Entropy entropy,
Lifetime lifetime)
throws WSTrustException
WSTrustException
public abstract RequestSecurityTokenResponseCollection createRSTRCollectionForIssue(URI tokenType,
URI context,
RequestedSecurityToken token,
AppliesTo scopes,
RequestedAttachedReference attachedRef,
RequestedUnattachedReference unattachedRef,
RequestedProofToken proofToken,
Entropy entropy,
Lifetime lifetime)
throws WSTrustException
WSTrustExceptionpublic abstract IssuedTokens createIssuedTokens(RequestSecurityTokenResponseCollection issuedTokens)
public abstract Entropy createEntropy(BinarySecret secret)
public abstract Entropy createEntropy(EncryptedKey key)
public abstract SecondaryParameters createSecondaryParameters()
public abstract BinarySecret createBinarySecret(byte[] rawValue,
String type)
public abstract BinarySecret createBinarySecret(Element elem)
throws WSTrustException
WSTrustException
public abstract UseKey createUseKey(Token token,
String sig)
public abstract OnBehalfOf createOnBehalfOf(Token oboToken)
public abstract ActAs createActAs(Token token)
public abstract ValidateTarget createValidateTarget(Token token)
public abstract Status createStatus(String code,
String reason)
public abstract Lifetime createLifetime(AttributedDateTime created,
AttributedDateTime expires)
public abstract RequestedProofToken createRequestedProofToken()
public abstract RequestedSecurityToken createRequestedSecurityToken(Token token)
public abstract RequestedSecurityToken createRequestedSecurityToken()
public abstract DirectReference createDirectReference(String valueType,
String uri)
public abstract KeyIdentifier createKeyIdentifier(String valueType,
String encodingType)
public abstract SecurityTokenReference createSecurityTokenReference(Reference ref)
public abstract SecurityContextToken createSecurityContextToken(URI identifier,
String instance,
String wsuId)
public abstract RequestedAttachedReference createRequestedAttachedReference(SecurityTokenReference str)
public abstract RequestedUnattachedReference createRequestedUnattachedReference(SecurityTokenReference str)
public abstract RequestSecurityToken createRSTForRenew(URI tokenType,
URI requestType,
URI context,
RenewTarget target,
AllowPostdating apd,
Renewing renewingInfo)
public abstract RequestSecurityTokenResponse createRSTRForRenew(URI tokenType,
URI context,
RequestedSecurityToken token,
RequestedAttachedReference attachedReference,
RequestedUnattachedReference unattachedRef,
RequestedProofToken proofToken,
Entropy entropy,
Lifetime lifetime)
throws WSTrustException
WSTrustExceptionpublic abstract RenewTarget createRenewTarget(SecurityTokenReference str)
public abstract CancelTarget createCancelTarget(SecurityTokenReference str)
public abstract RequestSecurityToken createRSTForCancel(URI requestType,
CancelTarget target)
public abstract RequestSecurityTokenResponse createRSTRForCancel()
public abstract RequestSecurityToken createRSTForValidate(URI tokenType,
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.
public abstract RequestSecurityTokenResponse createRSTRForValidate(URI tokenType,
RequestedSecurityToken token,
Status status)
public abstract RequestSecurityTokenResponseCollection createRSTRC(List<RequestSecurityTokenResponse> rstrs)
public abstract RequestSecurityToken createRST()
public abstract RequestSecurityTokenResponse createRSTR()
public abstract RequestSecurityToken createRSTFrom(Source src)
public abstract RequestSecurityToken createRSTFrom(Element elem)
public abstract RequestSecurityTokenResponse createRSTRFrom(Source src)
public abstract RequestSecurityTokenResponse createRSTRFrom(Element elem)
public abstract RequestSecurityTokenResponseCollection createRSTRCollectionFrom(Source src)
public abstract RequestSecurityTokenResponseCollection createRSTRCollectionFrom(Element elem)
public abstract Claims createClaims(Element elem)
throws WSTrustException
WSTrustException
public abstract Claims createClaims(Claims claims)
throws WSTrustException
WSTrustException
public abstract Claims createClaims()
throws WSTrustException
WSTrustExceptionpublic abstract RequestSecurityToken createRSTFrom(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.
public abstract RequestSecurityTokenResponse createRSTRFrom(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.
public abstract RequestSecurityTokenResponseCollection createRSTRCollectionFrom(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.
public abstract SecurityTokenReference createSecurityTokenReference(JAXBElement elem)
public abstract JAXBElement toJAXBElement(BaseSTSRequest request)
public abstract JAXBElement toJAXBElement(BaseSTSResponse response)
public abstract JAXBElement toJAXBElement(SecurityTokenReference str)
public abstract JAXBElement toJAXBElement(RequestSecurityToken rst)
public abstract JAXBElement toJAXBElement(RequestSecurityTokenResponse rstr)
public abstract JAXBElement toJAXBElement(RequestSecurityTokenResponseCollection rstrCollection)
public abstract Source toSource(BaseSTSRequest request)
public abstract Source toSource(BaseSTSResponse response)
public abstract Source toSource(RequestSecurityToken rst)
Note: Useful for Dispatch Client implementations
public abstract Source toSource(RequestSecurityTokenResponse rstr)
Note: Useful for STS implementations which are JAXWS Providers
public abstract Source toSource(RequestSecurityTokenResponseCollection rstrCollection)
Note: Useful for STS implementations which are JAXWS Providers
public abstract Element toElement(BaseSTSRequest request)
public abstract Element toElement(BaseSTSResponse response)
public abstract Element toElement(RequestSecurityToken rst)
Note: Useful for Dispatch Client implementations
public abstract Element toElement(RequestSecurityTokenResponse rstr)
Note: Useful for STS implementations which are JAXWS Providers
public abstract Element toElement(RequestSecurityTokenResponse rstr,
Document doc)
public abstract Element toElement(RequestSecurityTokenResponseCollection rstrCollection)
Note: Useful for STS implementations which are JAXWS Providers
public abstract Element toElement(BinarySecret binarySecret)
Note: Useful for STS implementations which are JAXWS Providers
public abstract Element toElement(SecurityTokenReference str,
Document doc)
Note: Useful for Dispatch Client implementations
public abstract Element toElement(BinarySecret binarySecret,
Document doc)
Note: Useful for Dispatch Client implementations
public Element toElement(Object jaxbEle)
public abstract Marshaller getMarshaller()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||