public class WSTrustFactory extends Object
WSTrustFactory
is a factory class that generates
ws-trust protocol objects.
TODO - We need to make this abstract to make it truely pluggable.Modifier and Type | Method and Description |
---|---|
RequestSecurityToken |
createRequestSecurityToken()
Returns an instance of
RequestSecurityToken |
RequestSecurityToken |
createRequestSecurityToken(Element element)
Returns an instance of
RequestSecurityToken for
given DOM Element. |
RequestSecurityTokenResponse |
createRequestSecurityTokenResponse()
Returns an instance of
RequestSecurityTokenResponse |
RequestSecurityTokenResponse |
createRequestSecurityTokenResponse(Element element)
Returns an instance of
RequestSecurityTokenResponse for
a given DOM element |
RequestSecurityTokenResponseCollection |
createRequestSecurityTokenResponseCollection()
Returns an instance of
RequestSecurityTokenResponseCollection |
RequestSecurityTokenResponseCollection |
createRequestSecurityTokenResponseCollection(Element element)
Returns an instance of
RequestSecurityTokenResponseCollection
for a given DOM Element. |
static WSTrustFactory |
newInstance()
Returns an instance of
WSTrustFactory for the default
WS-Trust protocol 1.0 |
static WSTrustFactory |
newInstance(String protocolVersion)
Returns an instance of
WSTrustFactory for the given
protocol version. |
public static WSTrustFactory newInstance() throws WSTException
WSTrustFactory
for the default
WS-Trust protocol 1.0WSTrustFactory
for the default
WS-Trust protocol 1.0WSTException
- if it is unsupported version.public static WSTrustFactory newInstance(String protocolVersion) throws WSTException
WSTrustFactory
for the given
protocol version.protocolVersion
- the protocol version.WSTrustFactory
for the given
protocol version.WSTException
public RequestSecurityToken createRequestSecurityToken()
RequestSecurityToken
RequestSecurityToken
public RequestSecurityToken createRequestSecurityToken(Element element) throws WSTException
RequestSecurityToken
for
given DOM Element.element
- the DOM Element for RequestSecurityToken
RequestSecurityToken
WSTException
public RequestSecurityTokenResponse createRequestSecurityTokenResponse()
RequestSecurityTokenResponse
RequestSecurityTokenResponse
public RequestSecurityTokenResponse createRequestSecurityTokenResponse(Element element) throws WSTException
RequestSecurityTokenResponse
for
a given DOM elementelement
- the DOM element representation of
RequestSecurityTokenResponse
RequestSecurityTokenResponse
WSTException
public RequestSecurityTokenResponseCollection createRequestSecurityTokenResponseCollection()
RequestSecurityTokenResponseCollection
RequestSecurityTokenResponseCollection
public RequestSecurityTokenResponseCollection createRequestSecurityTokenResponseCollection(Element element) throws WSTException
RequestSecurityTokenResponseCollection
for a given DOM Element.element
- the DOM Element representation of
RequestSecurityTokenResponseCollection
RequestSecurityTokenResponseCollection
WSTException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.