Example usage for Java org.apache.hadoop.security Credentials fields, constructors, methods, implement or subclass
The text is from its open source code.
Credentials() Create an empty credentials instance. | |
Credentials(Credentials credentials) Create a copy of the given credentials. |
void | addAll(Credentials other) Copy all of the credentials from one credential object into another. |
void | addSecretKey(Text alias, byte[] key) Set the key for an alias. |
void | addToken(Text alias, Token extends TokenIdentifier> t) Add a token in the storage (in memory). |
Collection | getAllTokens() Return all the tokens in the in-memory map. |
byte[] | getSecretKey(Text alias) Returns the key bytes for the alias. |
Token extends TokenIdentifier> | getToken(Text alias) Returns the Token object for the alias. |
void | mergeAll(Credentials other) Copy all of the credentials from one credential object into another. |
int | numberOfSecretKeys() |
int | numberOfTokens() |
void | readFields(DataInput in) Loads all the keys. |
Credentials | readTokenStorageFile(Path filename, Configuration conf) Convenience method for reading a token storage file and loading its Tokens. |
Credentials | readTokenStorageFile(File filename, Configuration conf) Convenience method for reading a token storage file and loading its Tokens. |
void | readTokenStorageStream(DataInputStream in) Convenience method for reading a token from a DataInputStream. |
void | write(DataOutput out) Stores all the keys to DataOutput. |
void | writeTokenStorageFile(Path filename, Configuration conf) |
void | writeTokenStorageToStream(DataOutputStream os) |