Search in sources :

Example 1 with NonExpiringTokenAuthentication

use of com.opentext.ia.sdk.support.http.rest.NonExpiringTokenAuthentication in project infoarchive-sip-sdk by Enterprise-Content-Management.

the class WhenConfiguringAuthenticationStrategy method shouldGetTokenAuthenticationConfiguration.

@Test
public void shouldGetTokenAuthenticationConfiguration() {
    configuration.setAuthenticationToken(randomString());
    AuthenticationStrategy authentication = authFactory.getAuthenticationStrategy(() -> null, () -> null);
    assertTrue(authentication instanceof NonExpiringTokenAuthentication);
}
Also used : AuthenticationStrategy(com.opentext.ia.sdk.support.http.rest.AuthenticationStrategy) NonExpiringTokenAuthentication(com.opentext.ia.sdk.support.http.rest.NonExpiringTokenAuthentication) Test(org.junit.Test)

Aggregations

AuthenticationStrategy (com.opentext.ia.sdk.support.http.rest.AuthenticationStrategy)1 NonExpiringTokenAuthentication (com.opentext.ia.sdk.support.http.rest.NonExpiringTokenAuthentication)1 Test (org.junit.Test)1