com.cyberark.conjur.api.clients.AuthnTokenClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of conjur-api Show documentation
Show all versions of conjur-api Show documentation
Programmatic Java access to the Conjur API
package com.cyberark.conjur.api.clients;
import com.cyberark.conjur.api.AuthnProvider;
import com.cyberark.conjur.api.Token;
public class AuthnTokenClient implements AuthnProvider {
private Token token;
public AuthnTokenClient(Token token) {
this.token = token;
}
public Token authenticate() {
return token;
}
public Token authenticate(boolean useCachedToken) {
return this.authenticate();
}
}