com.netflix.msl.userauth.ProxyMslUser Maven / Gradle / Ivy
package com.netflix.msl.userauth;
import com.netflix.msl.tokens.MslUser;
/**
* A MSL user that is just the user ID.
*/
public class ProxyMslUser implements MslUser {
/**
* Create a new MSL user with the given user ID.
*
* @param userId the user ID.
*/
public ProxyMslUser(final String userId) {
this.userId = userId;
}
/**
* @return the user ID.
*/
public String getUserId() {
return userId;
}
/* (non-Javadoc)
* @see com.netflix.msl.tokens.MslUser#getEncoded()
*/
@Override
public String getEncoded() {
return userId;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return userId;
}
/** User string representation. */
private final String userId;
}