java.lang.Object org.apache.hadoop.security.Credentials
public class Credentials
A class that provides the facilities of reading and writing secret keys and Tokens.
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Credentials
public Credentials()
public byte[] getSecretKey(Text alias)
alias
- the alias for the key
public Token<? extends TokenIdentifier> getToken(Text alias)
alias
- the alias for the Token
public void addToken(Text alias, Token<? extends TokenIdentifier> t)
alias
- the alias for the key
t
- the token object
public Collection<Token<? extends TokenIdentifier>> getAllTokens()
public int numberOfTokens()
public int numberOfSecretKeys()
public void addSecretKey(Text alias, byte[] key)
alias
- the alias for the key
key
- the key bytes
public static Credentials readTokenStorageFile(Path filename, Configuration conf) throws IOException
filename
-
conf
-
IOException
public void readTokenStorageStream(DataInputStream in) throws IOException
IOException
public void writeTokenStorageToStream(DataOutputStream os) throws IOException
IOException
public void writeTokenStorageFile(Path filename, Configuration conf) throws IOException
IOException
public void write(DataOutput out) throws IOException
write
in interface Writable
out
-
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
in
-
IOException
public void addAll(Credentials other)
other
- the credentials to copy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4