public class StandardRequestHandler extends Object implements WSTrustRequestHandler
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 and Description |
|---|
StandardRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
RequestSecurityTokenResponse |
cancel(RequestSecurityToken request,
Principal callerPrincipal)
Cancels the security token as specified in the request message.
|
void |
initialize(STSConfiguration configuration)
Initializes the concrete
WSTrustRequestHandler instance. |
RequestSecurityTokenResponse |
issue(RequestSecurityToken request,
Principal callerPrincipal)
Generates a security token according to the information specified in the request message and returns the created token in
the response.
|
Document |
postProcess(Document rstrDocument,
RequestSecurityToken request)
Perform Post Processing on the generated RSTR Collection Document Steps such as signing and encryption need to be done
here.
|
RequestSecurityTokenResponse |
renew(RequestSecurityToken request,
Principal callerPrincipal)
Renews the security token as specified in the request message, returning the renewed token in the response.
|
RequestSecurityTokenResponse |
validate(RequestSecurityToken request,
Principal callerPrincipal)
Validates the security token as specified in the request message.
|
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, Principal callerPrincipal) throws org.picketlink.common.exceptions.fed.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.callerPrincipal - the Principal of the ws-trust token requester.RequestSecurityTokenResponse containing the generated token.org.picketlink.common.exceptions.fed.WSTrustException - if an error occurs while handling the request message.public RequestSecurityTokenResponse renew(RequestSecurityToken request, Principal callerPrincipal) throws org.picketlink.common.exceptions.fed.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.callerPrincipal - the Principal of the ws-trust token requester.RequestSecurityTokenResponse containing the renewed token.org.picketlink.common.exceptions.fed.WSTrustException - if an error occurs while handling the renewal process.public RequestSecurityTokenResponse validate(RequestSecurityToken request, Principal callerPrincipal) throws org.picketlink.common.exceptions.fed.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.callerPrincipal - the Principal of the ws-trust token requester.RequestSecurityTokenResponse containing the validation status or a new token.org.picketlink.common.exceptions.fed.WSTrustException - if an error occurs while handling the validation process.public RequestSecurityTokenResponse cancel(RequestSecurityToken request, Principal callerPrincipal) throws org.picketlink.common.exceptions.fed.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.callerPrincipal - the Principal of the ws-trust token requester.RequestSecurityTokenResponse indicating whether the token has been canceled or not.org.picketlink.common.exceptions.fed.WSTrustException - if an error occurs while handling the cancellation process.public Document postProcess(Document rstrDocument, RequestSecurityToken request) throws org.picketlink.common.exceptions.fed.WSTrustException
WSTrustRequestHandlerpostProcess in interface WSTrustRequestHandlerorg.picketlink.common.exceptions.fed.WSTrustExceptionCopyright © 2013 JBoss Inc.. All Rights Reserved.