use of org.apache.cxf.sts.operation.TokenRenewOperation in project OpenAM by OpenRock.
the class TokenRenewOperationProvider method get.
public RenewOperation get() {
// TODO: migrate to ThrowingProviders
try {
TokenRenewOperation tokenRenewOperation = new TokenRenewOperation();
tokenRenewOperation.setStsProperties(stsPropertiesMBean);
tokenRenewOperation.setTokenStore(tokenStore);
tokenRenewOperation.setTokenValidators(getTokenValidators());
tokenRenewOperation.setTokenRenewers(getTokenRenewers());
return new TokenRenewOperationWrapper(tokenRenewOperation, threadLocalAMTokenCache);
} catch (STSInitializationException e) {
logger.error("Exception caught initializing a RenewOperation: " + e, e);
throw new RuntimeException(e);
}
}
Aggregations