public class PasswordToken extends Object implements AuthenticationToken
AuthenticationToken.Properties, AuthenticationToken.TokenProperty| Constructor and Description |
|---|
PasswordToken()
Constructor for use with
Writable. |
PasswordToken(byte[] password)
Constructs a token from a copy of the password.
|
PasswordToken(ByteBuffer password)
Constructs a token from a copy of the password.
|
PasswordToken(CharSequence password)
Constructs a token from a copy of the password.
|
| Modifier and Type | Method and Description |
|---|---|
PasswordToken |
clone() |
void |
destroy() |
boolean |
equals(Object obj) |
byte[] |
getPassword() |
Set<AuthenticationToken.TokenProperty> |
getProperties() |
int |
hashCode() |
void |
init(AuthenticationToken.Properties properties) |
boolean |
isDestroyed() |
void |
readFields(DataInput arg0) |
void |
write(DataOutput arg0) |
public PasswordToken()
Writable. Call readFields(DataInput).public PasswordToken(CharSequence password)
public PasswordToken(byte[] password)
public PasswordToken(ByteBuffer password)
public byte[] getPassword()
public void readFields(DataInput arg0) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput arg0) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void destroy()
throws DestroyFailedException
destroy in interface DestroyableDestroyFailedExceptionpublic boolean isDestroyed()
isDestroyed in interface Destroyablepublic PasswordToken clone()
clone in interface AuthenticationTokenclone in class Objectpublic void init(AuthenticationToken.Properties properties)
init in interface AuthenticationTokenpublic Set<AuthenticationToken.TokenProperty> getProperties()
getProperties in interface AuthenticationTokenCopyright © 2011-2016 The Apache Software Foundation. All Rights Reserved.