use of org.apache.cxf.sts.token.canceller.TokenCanceller in project OpenAM by OpenRock.
the class TokenCancelOperationProvider method getFunctionalCancelOperation.
private CancelOperation getFunctionalCancelOperation() {
TokenCancelOperation tokenCancelOperation = new TokenCancelOperation();
tokenCancelOperation.setStsProperties(stsPropertiesMBean);
tokenCancelOperation.setTokenStore(tokenStore);
try {
List<TokenCanceller> tokenCancellers = new ArrayList<>();
for (TokenType tokentype : validatedTokens) {
tokenCancellers.add(operationFactory.getTokenCanceller(tokentype));
}
tokenCancelOperation.setTokenCancellers(tokenCancellers);
} catch (STSInitializationException e) {
throw new RuntimeException(e);
}
return new TokenCancelOperationWrapper(tokenCancelOperation, threadLocalAMTokenCache);
}
Aggregations