Search in sources :

Example 6 with SCTProvider

use of org.apache.cxf.sts.token.provider.SCTProvider in project cxf by apache.

the class SCTCancellerTest method getSecurityContextToken.

private TokenProviderResponse getSecurityContextToken() throws Exception {
    TokenProvider sctTokenProvider = new SCTProvider();
    TokenProviderParameters providerParameters = createProviderParameters(STSUtils.TOKEN_TYPE_SCT_05_12);
    return sctTokenProvider.createToken(providerParameters);
}
Also used : TokenProvider(org.apache.cxf.sts.token.provider.TokenProvider) SCTProvider(org.apache.cxf.sts.token.provider.SCTProvider) TokenProviderParameters(org.apache.cxf.sts.token.provider.TokenProviderParameters)

Example 7 with SCTProvider

use of org.apache.cxf.sts.token.provider.SCTProvider in project cxf by apache.

the class SCTValidatorTest method getSecurityContextToken.

private TokenProviderResponse getSecurityContextToken() throws Exception {
    TokenProvider sctTokenProvider = new SCTProvider();
    TokenProviderParameters providerParameters = createProviderParameters(STSUtils.TOKEN_TYPE_SCT_05_12);
    return sctTokenProvider.createToken(providerParameters);
}
Also used : TokenProvider(org.apache.cxf.sts.token.provider.TokenProvider) SCTProvider(org.apache.cxf.sts.token.provider.SCTProvider) TokenProviderParameters(org.apache.cxf.sts.token.provider.TokenProviderParameters)

Aggregations

SCTProvider (org.apache.cxf.sts.token.provider.SCTProvider)7 TokenProvider (org.apache.cxf.sts.token.provider.TokenProvider)7 TokenProviderParameters (org.apache.cxf.sts.token.provider.TokenProviderParameters)4 Principal (java.security.Principal)3 ArrayList (java.util.ArrayList)3 JAXBElement (javax.xml.bind.JAXBElement)3 WrappedMessageContext (org.apache.cxf.jaxws.context.WrappedMessageContext)3 MessageImpl (org.apache.cxf.message.MessageImpl)3 SecurityContext (org.apache.cxf.security.SecurityContext)3 STSPropertiesMBean (org.apache.cxf.sts.STSPropertiesMBean)3 StaticSTSProperties (org.apache.cxf.sts.StaticSTSProperties)3 PasswordCallbackHandler (org.apache.cxf.sts.common.PasswordCallbackHandler)3 ServiceMBean (org.apache.cxf.sts.service.ServiceMBean)3 StaticService (org.apache.cxf.sts.service.StaticService)3 RequestSecurityTokenResponseCollectionType (org.apache.cxf.ws.security.sts.provider.model.RequestSecurityTokenResponseCollectionType)3 RequestSecurityTokenResponseType (org.apache.cxf.ws.security.sts.provider.model.RequestSecurityTokenResponseType)3 RequestSecurityTokenType (org.apache.cxf.ws.security.sts.provider.model.RequestSecurityTokenType)3 Crypto (org.apache.wss4j.common.crypto.Crypto)3 CustomTokenPrincipal (org.apache.wss4j.common.principal.CustomTokenPrincipal)3 TokenProviderResponse (org.apache.cxf.sts.token.provider.TokenProviderResponse)2