public class PasswordToken extends Object implements AuthenticationToken
AuthenticationToken.AuthenticationTokenSerializer, 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) |
protected void |
setPassword(byte[] password) |
protected void |
setPassword(CharBuffer charBuffer) |
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.Writable
IOException
public void write(DataOutput arg0) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void destroy() throws DestroyFailedException
destroy
in interface Destroyable
DestroyFailedException
public boolean isDestroyed()
isDestroyed
in interface Destroyable
public PasswordToken clone()
clone
in interface AuthenticationToken
clone
in class Object
protected void setPassword(byte[] password)
protected void setPassword(CharBuffer charBuffer)
public void init(AuthenticationToken.Properties properties)
init
in interface AuthenticationToken
public Set<AuthenticationToken.TokenProperty> getProperties()
getProperties
in interface AuthenticationToken
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.