public class SAMLTokenRenewer extends Object implements TokenRenewer
| Constructor and Description |
|---|
SAMLTokenRenewer() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.axiom.om.OMElement |
buildResponse(org.apache.axis2.context.MessageContext inMsgCtx,
RahasData data,
org.apache.axiom.soap.SOAPEnvelope env,
String tokenType)
create the RSTR element with the token type
|
protected org.apache.ws.security.components.crypto.Crypto |
getCrypto(org.apache.axis2.context.MessageContext inMsgCtx,
SAMLTokenIssuerConfig config)
create the crypto from configuration.
|
org.apache.axiom.soap.SOAPEnvelope |
renew(RahasData data)
Renew the token specified in the given request.
|
protected SAMLTokenIssuerConfig |
setConfig(org.apache.axis2.context.MessageContext inMsgCtx)
set the configuration for SAML 1.1 and 2.0 renewing
|
void |
setConfigurationElement(org.apache.axiom.om.OMElement configElement)
Set the configuration element of TokenRenewer.
|
void |
setConfigurationFile(String configFile)
Set the configuration file of this TokenRenewer.
|
void |
setConfigurationParamName(String configParamName)
Set the name of the configuration parameter.
|
protected org.opensaml.SAMLAssertion |
signAssertion(org.apache.ws.security.components.crypto.Crypto crypto,
org.opensaml.SAMLAssertion samlAssertion,
SAMLTokenIssuerConfig config)
sign the SAML 1.1 assertion.
|
public org.apache.axiom.soap.SOAPEnvelope renew(RahasData data) throws TrustException
TokenRenewerrenew in interface TokenRenewerdata - A populated RahasData instanceTrustExceptionprotected org.opensaml.SAMLAssertion signAssertion(org.apache.ws.security.components.crypto.Crypto crypto,
org.opensaml.SAMLAssertion samlAssertion,
SAMLTokenIssuerConfig config)
throws Exception
crypto - samlAssertion - config - Exceptionprotected org.apache.ws.security.components.crypto.Crypto getCrypto(org.apache.axis2.context.MessageContext inMsgCtx,
SAMLTokenIssuerConfig config)
inMsgCtx - config - protected SAMLTokenIssuerConfig setConfig(org.apache.axis2.context.MessageContext inMsgCtx) throws TrustException
inMsgCtx - TrustExceptionprotected org.apache.axiom.om.OMElement buildResponse(org.apache.axis2.context.MessageContext inMsgCtx,
RahasData data,
org.apache.axiom.soap.SOAPEnvelope env,
String tokenType)
throws TrustException
inMsgCtx - data - env - tokenType - TrustExceptionpublic void setConfigurationFile(String configFile)
setConfigurationFile in interface TokenRenewerpublic void setConfigurationElement(org.apache.axiom.om.OMElement configElement)
setConfigurationElement in interface TokenRenewerconfigElement - OMElement representing the configurationpublic void setConfigurationParamName(String configParamName)
org.apache.axis2.description.Parameter object available in
the via the messageContext when the TokenIssuer is called.setConfigurationParamName in interface TokenRenewerParameterCopyright © 2005–2019 Apache Software Foundation. All rights reserved.