Search in sources :

Example 1 with TokenRenewOperation

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);
    }
}
Also used : TokenRenewOperation(org.apache.cxf.sts.operation.TokenRenewOperation) STSInitializationException(org.forgerock.openam.sts.STSInitializationException)

Aggregations

TokenRenewOperation (org.apache.cxf.sts.operation.TokenRenewOperation)1 STSInitializationException (org.forgerock.openam.sts.STSInitializationException)1