Java org.apache.hadoop.security Credentials fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.security Credentials fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.security Credentials.

The text is from its open source code.

Constructor

Credentials()
Create an empty credentials instance.
Credentials(Credentials credentials)
Create a copy of the given credentials.

Method

voidaddAll(Credentials other)
Copy all of the credentials from one credential object into another.
voidaddSecretKey(Text alias, byte[] key)
Set the key for an alias.
voidaddToken(Text alias, Token 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.
TokengetToken(Text alias)
Returns the Token object for the alias.
voidmergeAll(Credentials other)
Copy all of the credentials from one credential object into another.
intnumberOfSecretKeys()
intnumberOfTokens()
voidreadFields(DataInput in)
Loads all the keys.
CredentialsreadTokenStorageFile(Path filename, Configuration conf)
Convenience method for reading a token storage file and loading its Tokens.
CredentialsreadTokenStorageFile(File filename, Configuration conf)
Convenience method for reading a token storage file and loading its Tokens.
voidreadTokenStorageStream(DataInputStream in)
Convenience method for reading a token from a DataInputStream.
voidwrite(DataOutput out)
Stores all the keys to DataOutput.
voidwriteTokenStorageFile(Path filename, Configuration conf)
voidwriteTokenStorageToStream(DataOutputStream os)