public class KeyAuthenticationProvider extends ServerAuthenticationProvider
ServerAuthenticationProvider.MatchValues, ServerAuthenticationProvider.ServerObjs| Constructor and Description |
|---|
KeyAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getScheme()
The String used to represent this provider.
|
KeeperException.Code |
handleAuthentication(ServerAuthenticationProvider.ServerObjs serverObjs,
byte[] authData)
This method is called when a client passes authentication data for this
scheme.
|
boolean |
isAuthenticated()
This method is used to check if the authentication done by this provider
should be used to identify the creator of a node.
|
boolean |
isValid(String id)
Validates the syntax of an id.
|
boolean |
matches(ServerAuthenticationProvider.ServerObjs serverObjs,
ServerAuthenticationProvider.MatchValues matchValues)
This method is called to see if the given id matches the given id
expression in the ACL.
|
handleAuthentication, matchesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUserNamepublic String getScheme()
AuthenticationProviderpublic KeeperException.Code handleAuthentication(ServerAuthenticationProvider.ServerObjs serverObjs, byte[] authData)
ServerAuthenticationProviderhandleAuthentication in class ServerAuthenticationProviderserverObjs - cnxn/server/etc that received the authentication information.authData - the authentication data received.public boolean matches(ServerAuthenticationProvider.ServerObjs serverObjs, ServerAuthenticationProvider.MatchValues matchValues)
ServerAuthenticationProvidermatches in class ServerAuthenticationProviderserverObjs - cnxn/server/etc that received the authentication information.matchValues - values to be matchedpublic boolean isAuthenticated()
AuthenticationProviderpublic boolean isValid(String id)
AuthenticationProviderid - the id to validate.Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.