Package com.illumon.iris.auth
Interface LocalAuthenticationServer
- All Known Implementing Classes:
AuthenticationServer,AuthenticationServerBase,GrpcAuthenticationServer
public interface LocalAuthenticationServer
Methods required to implement In-process TokenFactoryFactory functionality. This can be useful if/when combining
services in one main, and for testing.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLocalClient(LocalAuthenticationClientManager localClient, String authenticatedUser, String effectiveUser) Inserts the localClient into this authentication server's state map.createTokenForUserLocal(LocalAuthenticationClientManager client, String service, String operateAs) Creates a token for the provided service and user.createTokenLocal(LocalAuthenticationClientManager client, String service) byte[]booleanisTokenValid(String verifyingService, AuthToken tokenToVerify) booleanverifyChallengeLocal(LocalAuthenticationClientManager localClient, PublicKey publicKey, byte[] response, String userToAuthenticate, String effectiveUser)
-
Method Details
-
addLocalClient
boolean addLocalClient(LocalAuthenticationClientManager localClient, String authenticatedUser, String effectiveUser) Inserts the localClient into this authentication server's state map.
The client is authenticated as the provided user.
- Parameters:
localClient- the local client stateauthenticatedUser- the authenticated user for the client state.effectiveUser- the effective user for the client state.- Returns:
- true (authentication cannot fail)
-
verifyChallengeLocal
boolean verifyChallengeLocal(LocalAuthenticationClientManager localClient, PublicKey publicKey, byte[] response, String userToAuthenticate, String effectiveUser) -
isTokenValid
-
createTokenLocal
-
createTokenForUserLocal
AuthToken createTokenForUserLocal(LocalAuthenticationClientManager client, String service, String operateAs) Creates a token for the provided service and user.- Parameters:
client- the client to create a token forservice- the service to create a token foroperateAs- the effective user to create a token for- Returns:
- the newly created token
-
getOriginHost
InetAddress getOriginHost() -
getNonce
-