Package com.sun.identity.wss.trust
Class WSTrustFactory
- java.lang.Object
-
- com.sun.identity.wss.trust.WSTrustFactory
-
public class WSTrustFactory extends Object
The classWSTrustFactoryis a factory class that generates ws-trust protocol objects. TODO - We need to make this abstract to make it truely pluggable.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestSecurityTokencreateRequestSecurityToken()Returns an instance ofRequestSecurityTokenRequestSecurityTokencreateRequestSecurityToken(Element element)Returns an instance ofRequestSecurityTokenfor given DOM Element.RequestSecurityTokenResponsecreateRequestSecurityTokenResponse()Returns an instance ofRequestSecurityTokenResponseRequestSecurityTokenResponsecreateRequestSecurityTokenResponse(Element element)Returns an instance ofRequestSecurityTokenResponsefor a given DOM elementRequestSecurityTokenResponseCollectioncreateRequestSecurityTokenResponseCollection()Returns an instance ofRequestSecurityTokenResponseCollectionRequestSecurityTokenResponseCollectioncreateRequestSecurityTokenResponseCollection(Element element)Returns an instance ofRequestSecurityTokenResponseCollectionfor a given DOM Element.static WSTrustFactorynewInstance()Returns an instance ofWSTrustFactoryfor the default WS-Trust protocol 1.0static WSTrustFactorynewInstance(String protocolVersion)Returns an instance ofWSTrustFactoryfor the given protocol version.
-
-
-
Method Detail
-
newInstance
public static WSTrustFactory newInstance() throws WSTException
Returns an instance ofWSTrustFactoryfor the default WS-Trust protocol 1.0- Returns:
- the instance of
WSTrustFactoryfor the default WS-Trust protocol 1.0 - Throws:
WSTException- if it is unsupported version.
-
newInstance
public static WSTrustFactory newInstance(String protocolVersion) throws WSTException
Returns an instance ofWSTrustFactoryfor the given protocol version.- Parameters:
protocolVersion- the protocol version.- Returns:
- an instance of
WSTrustFactoryfor the given protocol version. - Throws:
WSTException
-
createRequestSecurityToken
public RequestSecurityToken createRequestSecurityToken()
Returns an instance ofRequestSecurityToken- Returns:
- the instance of
RequestSecurityToken
-
createRequestSecurityToken
public RequestSecurityToken createRequestSecurityToken(Element element) throws WSTException
Returns an instance ofRequestSecurityTokenfor given DOM Element.- Parameters:
element- the DOM Element forRequestSecurityToken- Returns:
- the instance of
RequestSecurityToken - Throws:
WSTException
-
createRequestSecurityTokenResponse
public RequestSecurityTokenResponse createRequestSecurityTokenResponse()
Returns an instance ofRequestSecurityTokenResponse- Returns:
- the instance of
RequestSecurityTokenResponse
-
createRequestSecurityTokenResponse
public RequestSecurityTokenResponse createRequestSecurityTokenResponse(Element element) throws WSTException
Returns an instance ofRequestSecurityTokenResponsefor a given DOM element- Parameters:
element- the DOM element representation ofRequestSecurityTokenResponse- Returns:
- an instance of
RequestSecurityTokenResponse - Throws:
WSTException
-
createRequestSecurityTokenResponseCollection
public RequestSecurityTokenResponseCollection createRequestSecurityTokenResponseCollection()
Returns an instance ofRequestSecurityTokenResponseCollection- Returns:
- an instance of
RequestSecurityTokenResponseCollection
-
createRequestSecurityTokenResponseCollection
public RequestSecurityTokenResponseCollection createRequestSecurityTokenResponseCollection(Element element) throws WSTException
Returns an instance ofRequestSecurityTokenResponseCollectionfor a given DOM Element.- Parameters:
element- the DOM Element representation ofRequestSecurityTokenResponseCollection- Returns:
- the
RequestSecurityTokenResponseCollection - Throws:
WSTException
-
-