public class Credential extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DIGEST_ALGO |
static Credential |
INACCESSIBLE |
| Constructor and Description |
|---|
Credential(byte[] salt,
byte[] passwordHash) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Equality to always check for both salt and password hash as a safeguard against timing attack.
|
static Credential |
forPassword(String password) |
int |
hashCode() |
boolean |
matchesPassword(String password) |
byte[] |
passwordHash() |
byte[] |
salt() |
String |
toString() |
public static final String DIGEST_ALGO
public static final Credential INACCESSIBLE
public static Credential forPassword(String password)
public byte[] salt()
public byte[] passwordHash()
public boolean matchesPassword(String password)
public boolean equals(Object o)
Equality to always check for both salt and password hash as a safeguard against timing attack.
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.