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, matches
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUserName
public String getScheme()
AuthenticationProvider
public KeeperException.Code handleAuthentication(ServerAuthenticationProvider.ServerObjs serverObjs, byte[] authData)
ServerAuthenticationProvider
handleAuthentication
in class ServerAuthenticationProvider
serverObjs
- cnxn/server/etc that received the authentication information.authData
- the authentication data received.public boolean matches(ServerAuthenticationProvider.ServerObjs serverObjs, ServerAuthenticationProvider.MatchValues matchValues)
ServerAuthenticationProvider
matches
in class ServerAuthenticationProvider
serverObjs
- cnxn/server/etc that received the authentication information.matchValues
- values to be matchedpublic boolean isAuthenticated()
AuthenticationProvider
public boolean isValid(String id)
AuthenticationProvider
id
- the id to validate.Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.