Search in sources :

Example 6 with TokenRenewer

use of org.apache.cxf.sts.token.renewer.TokenRenewer in project cxf by apache.

the class DefaultSecurityTokenServiceProvider method createTokenRenewOperation.

private TokenRenewOperation createTokenRenewOperation() {
    TokenRenewOperation renewOperation = new TokenRenewOperation();
    populateAbstractOperation(renewOperation);
    List<TokenRenewer> tokenRenewers = new ArrayList<>();
    tokenRenewers.add(new SAMLTokenRenewer());
    renewOperation.setTokenRenewers(tokenRenewers);
    return renewOperation;
}
Also used : SAMLTokenRenewer(org.apache.cxf.sts.token.renewer.SAMLTokenRenewer) ArrayList(java.util.ArrayList) TokenRenewOperation(org.apache.cxf.sts.operation.TokenRenewOperation) TokenRenewer(org.apache.cxf.sts.token.renewer.TokenRenewer) SAMLTokenRenewer(org.apache.cxf.sts.token.renewer.SAMLTokenRenewer)

Aggregations

TokenRenewer (org.apache.cxf.sts.token.renewer.TokenRenewer)6 ArrayList (java.util.ArrayList)5 SAMLTokenRenewer (org.apache.cxf.sts.token.renewer.SAMLTokenRenewer)5 RequestSecurityTokenResponseType (org.apache.cxf.ws.security.sts.provider.model.RequestSecurityTokenResponseType)5 Principal (java.security.Principal)4 CallbackHandler (javax.security.auth.callback.CallbackHandler)4 JAXBElement (javax.xml.bind.JAXBElement)4 WrappedMessageContext (org.apache.cxf.jaxws.context.WrappedMessageContext)4 MessageImpl (org.apache.cxf.message.MessageImpl)4 SecurityContext (org.apache.cxf.security.SecurityContext)4 STSPropertiesMBean (org.apache.cxf.sts.STSPropertiesMBean)4 StaticSTSProperties (org.apache.cxf.sts.StaticSTSProperties)4 PasswordCallbackHandler (org.apache.cxf.sts.common.PasswordCallbackHandler)4 SAMLTokenValidator (org.apache.cxf.sts.token.validator.SAMLTokenValidator)4 TokenValidator (org.apache.cxf.sts.token.validator.TokenValidator)4 RenewTargetType (org.apache.cxf.ws.security.sts.provider.model.RenewTargetType)4 RequestSecurityTokenType (org.apache.cxf.ws.security.sts.provider.model.RequestSecurityTokenType)4 RequestedSecurityTokenType (org.apache.cxf.ws.security.sts.provider.model.RequestedSecurityTokenType)4 Crypto (org.apache.wss4j.common.crypto.Crypto)4 CustomTokenPrincipal (org.apache.wss4j.common.principal.CustomTokenPrincipal)4