use of org.apache.cxf.sts.operation.TokenValidateOperation in project OpenAM by OpenRock.
the class TokenValidateOperationProvider method getFunctionalValidateOperation.
private ValidateOperation getFunctionalValidateOperation() {
TokenValidateOperation tokenValidateOperation = new TokenValidateOperation();
tokenValidateOperation.setStsProperties(stsPropertiesMBean);
tokenValidateOperation.setTokenStore(tokenStore);
try {
List<TokenValidator> tokenValidators = new ArrayList<>();
for (TokenType tokentype : validatedTokens) {
tokenValidators.add(operationFactory.getSimpleTokenValidator(tokentype));
}
tokenValidateOperation.setTokenValidators(tokenValidators);
} catch (STSInitializationException e) {
throw new RuntimeException(e);
}
return new TokenValidateOperationWrapper(tokenValidateOperation, threadLocalAMTokenCache);
}
use of org.apache.cxf.sts.operation.TokenValidateOperation in project cas by apereo.
the class CoreWsSecuritySecurityTokenServiceConfiguration method transportValidateDelegate.
@RefreshScope
@Bean
public ValidateOperation transportValidateDelegate() {
final TokenValidateOperation op = new TokenValidateOperation();
op.setTokenValidators(transportTokenValidators());
op.setStsProperties(transportSTSProperties());
op.setEventListener(loggerListener());
return op;
}
Aggregations