|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.zookeeper.server.auth.DigestAuthenticationProvider
public class DigestAuthenticationProvider
Constructor Summary | |
---|---|
DigestAuthenticationProvider()
|
Method Summary | |
---|---|
static java.lang.String |
generateDigest(java.lang.String idPassword)
|
java.lang.String |
getScheme()
The String used to represent this provider. |
KeeperException.Code |
handleAuthentication(ServerCnxn cnxn,
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(java.lang.String id)
Validates the syntax of an id. |
static void |
main(java.lang.String[] args)
Call with a single argument of user:pass to generate authdata. |
boolean |
matches(java.lang.String id,
java.lang.String aclExpr)
This method is called to see if the given id matches the given id expression in the ACL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DigestAuthenticationProvider()
Method Detail |
---|
public java.lang.String getScheme()
AuthenticationProvider
getScheme
in interface AuthenticationProvider
public static java.lang.String generateDigest(java.lang.String idPassword) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public KeeperException.Code handleAuthentication(ServerCnxn cnxn, byte[] authData)
AuthenticationProvider
handleAuthentication
in interface AuthenticationProvider
cnxn
- the cnxn that received the authentication information.authData
- the authentication data received.
public boolean isAuthenticated()
AuthenticationProvider
isAuthenticated
in interface AuthenticationProvider
public boolean isValid(java.lang.String id)
AuthenticationProvider
isValid
in interface AuthenticationProvider
id
- the id to validate.
public boolean matches(java.lang.String id, java.lang.String aclExpr)
AuthenticationProvider
matches
in interface AuthenticationProvider
id
- the id to check.aclExpr
- the expression to match ids against.
public static void main(java.lang.String[] args) throws java.security.NoSuchAlgorithmException
args
- single argument of user:pass
java.security.NoSuchAlgorithmException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |