Search in sources :

Example 1 with OAuth2AuditAccessTokenContextProvider

use of org.forgerock.openam.rest.audit.OAuth2AuditAccessTokenContextProvider in project OpenAM by OpenRock.

the class OAuth2GuiceModule method getOAuth2AuditContextProviders.

@Inject
@Provides
@Singleton
@Named(OAUTH2_AUDIT_CONTEXT_PROVIDERS)
Set<OAuth2AuditContextProvider> getOAuth2AuditContextProviders(TokenStore tokenStore, OAuth2RequestFactory<?, Request> requestFactory) {
    Set<OAuth2AuditContextProvider> set = new HashSet<>();
    set.add(new OAuth2AuditAccessTokenContextProvider(tokenStore, requestFactory));
    set.add(new OAuth2AuditRefreshTokenContextProvider(tokenStore, requestFactory));
    set.add(new OAuth2AuditSSOTokenContextProvider());
    return set;
}
Also used : OAuth2AuditRefreshTokenContextProvider(org.forgerock.openam.rest.audit.OAuth2AuditRefreshTokenContextProvider) OAuth2AuditContextProvider(org.forgerock.openam.rest.audit.OAuth2AuditContextProvider) OAuth2AuditAccessTokenContextProvider(org.forgerock.openam.rest.audit.OAuth2AuditAccessTokenContextProvider) OAuth2AuditSSOTokenContextProvider(org.forgerock.openam.rest.audit.OAuth2AuditSSOTokenContextProvider) HashSet(java.util.HashSet) Inject(javax.inject.Inject) Named(javax.inject.Named) Singleton(javax.inject.Singleton) Provides(com.google.inject.Provides)

Aggregations

Provides (com.google.inject.Provides)1 HashSet (java.util.HashSet)1 Inject (javax.inject.Inject)1 Named (javax.inject.Named)1 Singleton (javax.inject.Singleton)1 OAuth2AuditAccessTokenContextProvider (org.forgerock.openam.rest.audit.OAuth2AuditAccessTokenContextProvider)1 OAuth2AuditContextProvider (org.forgerock.openam.rest.audit.OAuth2AuditContextProvider)1 OAuth2AuditRefreshTokenContextProvider (org.forgerock.openam.rest.audit.OAuth2AuditRefreshTokenContextProvider)1 OAuth2AuditSSOTokenContextProvider (org.forgerock.openam.rest.audit.OAuth2AuditSSOTokenContextProvider)1