|
||||||||||
| 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()
|
|
| Methods inherited from class com.sun.xml.ws.security.trust.WSTrustElementFactory |
|---|
getContext, getContext, newInstance, newInstance, newInstance, newInstance, toElement |
| 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(URI tokenType,
URI requestType,
URI context,
AppliesTo scopes,
Claims claims,
Entropy entropy,
Lifetime lifetime)
throws WSTrustException
createRSTForIssue in class WSTrustElementFactoryWSTrustException
public RequestSecurityTokenResponse createRSTRForIssue(URI tokenType,
URI context,
RequestedSecurityToken token,
AppliesTo scopes,
RequestedAttachedReference attachedReference,
RequestedUnattachedReference unattachedRef,
RequestedProofToken proofToken,
Entropy entropy,
Lifetime lifetime)
throws WSTrustException
createRSTRForIssue in class WSTrustElementFactoryWSTrustException
public RequestSecurityTokenResponseCollection createRSTRCollectionForIssue(URI tokenType,
URI context,
RequestedSecurityToken token,
AppliesTo scopes,
RequestedAttachedReference attached,
RequestedUnattachedReference unattached,
RequestedProofToken proofToken,
Entropy entropy,
Lifetime lifetime)
throws WSTrustException
createRSTRCollectionForIssue in class WSTrustElementFactoryWSTrustException
public RequestSecurityTokenResponse createRSTRForRenew(URI tokenType,
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(Token oboToken)
createOnBehalfOf in class WSTrustElementFactorypublic ValidateTarget createValidateTarget(Token token)
createValidateTarget in class WSTrustElementFactorypublic ActAs createActAs(Token token)
createActAs in class WSTrustElementFactorypublic Entropy createEntropy(BinarySecret secret)
createEntropy in class WSTrustElementFactorypublic Entropy createEntropy(EncryptedKey key)
createEntropy in class WSTrustElementFactory
public BinarySecret createBinarySecret(byte[] rawValue,
String type)
WSTrustElementFactory
createBinarySecret in class WSTrustElementFactory
public BinarySecret createBinarySecret(Element elem)
throws WSTrustException
WSTrustElementFactory
createBinarySecret in class WSTrustElementFactoryWSTrustException
public Lifetime createLifetime(AttributedDateTime created,
AttributedDateTime expires)
createLifetime in class WSTrustElementFactory
public Claims createClaims(Element elem)
throws WSTrustException
createClaims in class WSTrustElementFactoryWSTrustException
public Claims createClaims(Claims claims)
throws WSTrustException
createClaims in class WSTrustElementFactoryWSTrustException
public Claims createClaims()
throws WSTrustException
createClaims in class WSTrustElementFactoryWSTrustException
public Status createStatus(String code,
String reason)
createStatus in class WSTrustElementFactorypublic RequestedSecurityToken createRequestedSecurityToken(Token token)
createRequestedSecurityToken in class WSTrustElementFactorypublic RequestedSecurityToken createRequestedSecurityToken()
createRequestedSecurityToken in class WSTrustElementFactory
public DirectReference createDirectReference(String valueType,
String uri)
createDirectReference in class WSTrustElementFactory
public DirectReference createDirectReference(String valueType,
String uri,
String instanceId)
public KeyIdentifier createKeyIdentifier(String valueType,
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(Token token,
String sig)
createUseKey in class WSTrustElementFactory
public RequestSecurityToken createRSTForRenew(URI tokenType,
URI requestType,
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(URI requestType,
CancelTarget target)
createRSTForCancel in class WSTrustElementFactorypublic RequestSecurityTokenResponse createRSTRForCancel()
createRSTRForCancel in class WSTrustElementFactory
public 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.
createRSTForValidate in class WSTrustElementFactory
public RequestSecurityTokenResponse createRSTRForValidate(URI tokenType,
RequestedSecurityToken token,
Status status)
createRSTRForValidate in class WSTrustElementFactorypublic RequestSecurityToken createRST()
createRST in class WSTrustElementFactorypublic RequestSecurityTokenResponse createRSTR()
createRSTR in class WSTrustElementFactorypublic RequestSecurityTokenResponseCollection createRSTRC(List<RequestSecurityTokenResponse> rstrs)
createRSTRC in class WSTrustElementFactorypublic RequestSecurityToken createRSTFrom(Source src)
createRSTFrom in class WSTrustElementFactorypublic RequestSecurityToken createRSTFrom(Element elem)
createRSTFrom in class WSTrustElementFactorypublic RequestSecurityTokenResponse createRSTRFrom(Source src)
createRSTRFrom in class WSTrustElementFactorypublic RequestSecurityTokenResponse createRSTRFrom(Element elem)
createRSTRFrom in class WSTrustElementFactorypublic RequestSecurityTokenResponseCollection createRSTRCollectionFrom(Source src)
createRSTRCollectionFrom in class WSTrustElementFactorypublic RequestSecurityTokenResponseCollection createRSTRCollectionFrom(Element elem)
createRSTRCollectionFrom in class WSTrustElementFactorypublic 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.
createRSTFrom in class WSTrustElementFactorypublic 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.
createRSTRFrom in class WSTrustElementFactorypublic 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.
createRSTRCollectionFrom in class WSTrustElementFactorypublic SecurityTokenReference createSecurityTokenReference(JAXBElement elem)
createSecurityTokenReference in class WSTrustElementFactory
public SecurityContextToken createSecurityContextToken(URI identifier,
String instance,
String wsuId)
createSecurityContextToken in class WSTrustElementFactorypublic JAXBElement toJAXBElement(BaseSTSRequest request)
toJAXBElement in class WSTrustElementFactorypublic JAXBElement toJAXBElement(BaseSTSResponse response)
toJAXBElement in class WSTrustElementFactorypublic JAXBElement toJAXBElement(SecurityTokenReference str)
toJAXBElement in class WSTrustElementFactorypublic JAXBElement toJAXBElement(RequestSecurityToken rst)
toJAXBElement in class WSTrustElementFactorypublic JAXBElement toJAXBElement(RequestSecurityTokenResponse rstr)
toJAXBElement in class WSTrustElementFactorypublic JAXBElement toJAXBElement(Entropy entropy)
public JAXBElement toJAXBElement(RequestSecurityTokenResponseCollection rstrCollection)
toJAXBElement in class WSTrustElementFactorypublic Source toSource(BaseSTSRequest request)
toSource in class WSTrustElementFactorypublic Source toSource(BaseSTSResponse response)
toSource in class WSTrustElementFactorypublic Source toSource(RequestSecurityToken rst)
Note: Useful for Dispatch Client implementations
toSource in class WSTrustElementFactorypublic Source toSource(RequestSecurityTokenResponse rstr)
Note: Useful for STS implementations which are JAXWS Providers
toSource in class WSTrustElementFactorypublic Source toSource(RequestSecurityTokenResponseCollection rstrCollection)
Note: Useful for STS implementations which are JAXWS Providers
toSource in class WSTrustElementFactorypublic Element toElement(BaseSTSRequest request)
toElement in class WSTrustElementFactorypublic Element toElement(BaseSTSResponse response)
toElement in class WSTrustElementFactorypublic Element toElement(RequestSecurityToken rst)
Note: Useful for Dispatch Client implementations
toElement in class WSTrustElementFactorypublic Element toElement(RequestSecurityTokenResponse rstr)
Note: Useful for STS implementations which are JAXWS Providers
toElement in class WSTrustElementFactory
public Element toElement(RequestSecurityTokenResponse rstr,
Document doc)
toElement in class WSTrustElementFactorypublic Element toElement(RequestSecurityTokenResponseCollection rstrCollection)
Note: Useful for STS implementations which are JAXWS Providers
toElement in class WSTrustElementFactorypublic Element toElement(BinarySecret secret)
WSTrustElementFactoryNote: Useful for STS implementations which are JAXWS Providers
toElement in class WSTrustElementFactory
public Element toElement(SecurityTokenReference str,
Document doc)
Note: Useful for Dispatch Client implementations
toElement in class WSTrustElementFactory
public Element toElement(BinarySecret secret,
Document doc)
Note: Useful for Dispatch Client implementations
toElement in class WSTrustElementFactorypublic Marshaller getMarshaller()
getMarshaller in class WSTrustElementFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||