|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.identity.federation.bindings.jboss.trust.JBossRequestHandler
public class JBossRequestHandler
Default implementation of the WSTrustRequestHandler interface. It creates the request context containing the
original WS-Trust request as well as any information that may be relevant to the token processing, and delegates the
actual token handling processing to the appropriate SecurityTokenProvider.
| Constructor Summary | |
|---|---|
JBossRequestHandler()
|
|
| Method Summary | |
|---|---|
RequestSecurityTokenResponse |
cancel(RequestSecurityToken request,
javax.xml.ws.handler.MessageContext context)
Cancels the security token as specified in the request message. |
void |
initialize(STSConfiguration configuration)
Initializes the concrete WSTrustRequestHandler instance. |
RequestSecurityTokenResponse |
issue(RequestSecurityToken request,
javax.xml.ws.handler.MessageContext context)
Generates a security token according to the information specified in the request message and returns the created token in the response. |
RequestSecurityTokenResponse |
renew(RequestSecurityToken request,
javax.xml.ws.handler.MessageContext context)
Renews the security token as specified in the request message, returning the renewed token in the response. |
RequestSecurityTokenResponse |
validate(RequestSecurityToken request,
javax.xml.ws.handler.MessageContext context)
Validates the security token as specified in the request message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JBossRequestHandler()
| Method Detail |
|---|
public void initialize(STSConfiguration configuration)
WSTrustRequestHandler
Initializes the concrete WSTrustRequestHandler instance.
initialize in interface WSTrustRequestHandlerconfiguration - a reference to object that contains the STS configuration.
public RequestSecurityTokenResponse issue(RequestSecurityToken request,
javax.xml.ws.handler.MessageContext context)
throws WSTrustException
WSTrustRequestHandlerGenerates a security token according to the information specified in the request message and returns the created token in the response.
issue in interface WSTrustRequestHandlerrequest - the security token request message.context - the context of the token request message. The context provides information that may be relevant to
the request processing, such as the subject of the caller.
RequestSecurityTokenResponse containing the generated token.
WSTrustException - if an error occurs while handling the request message.
public RequestSecurityTokenResponse renew(RequestSecurityToken request,
javax.xml.ws.handler.MessageContext context)
throws WSTrustException
WSTrustRequestHandlerRenews the security token as specified in the request message, returning the renewed token in the response.
renew in interface WSTrustRequestHandlerrequest - the request message that contains the token to be renewed.context - the context of the token request message. The context provides information that may be relevant to
the request processing, such as the subject of the caller.
RequestSecurityTokenResponse containing the renewed token.
WSTrustException - if an error occurs while handling the renewal process.
public RequestSecurityTokenResponse validate(RequestSecurityToken request,
javax.xml.ws.handler.MessageContext context)
throws WSTrustException
WSTrustRequestHandlerValidates the security token as specified in the request message.
validate in interface WSTrustRequestHandlerrequest - the request message that contains the token to be validated.context - the context of the token request message. The context provides information that may be relevant to
the request processing, such as the subject of the caller.
RequestSecurityTokenResponse containing the validation status or a new token.
WSTrustException - if an error occurs while handling the validation process.
public RequestSecurityTokenResponse cancel(RequestSecurityToken request,
javax.xml.ws.handler.MessageContext context)
throws WSTrustException
WSTrustRequestHandlerCancels the security token as specified in the request message.
cancel in interface WSTrustRequestHandlerrequest - the request message that contains the token to be canceled.context - the context of the token request message. The context provides information that may be relevant to
the request processing, such as the subject of the caller.
RequestSecurityTokenResponse indicating whether the token has been canceled or not.
WSTrustException - if an error occurs while handling the cancellation process.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||