Class UsernameTokenState
- java.lang.Object
-
- org.forgerock.openam.sts.user.invocation.UsernameTokenState
-
public class UsernameTokenState extends Object
Contains state corresponding to a UsernameToken and will emit json which includes state necessary to act as the input_token_state in the RestSTSTokenTranslationInvocationState - i.e. the username and password state, and a AMSTSConstants.TOKEN_TYPE_KEY field corresponding to TokenType.USERNAME.name().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUsernameTokenState.UsernameTokenStateBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsernameTokenState.UsernameTokenStateBuilderbuilder()booleanequals(Object other)static UsernameTokenStatefromJson(org.forgerock.json.JsonValue jsonValue)byte[]getPassword()byte[]getUsername()inthashCode()org.forgerock.json.JsonValuetoJson()StringtoString()
-
-
-
Method Detail
-
builder
public static UsernameTokenState.UsernameTokenStateBuilder builder()
-
getUsername
public byte[] getUsername()
-
getPassword
public byte[] getPassword()
-
toJson
public org.forgerock.json.JsonValue toJson() throws TokenMarshalException- Throws:
TokenMarshalException
-
fromJson
public static UsernameTokenState fromJson(org.forgerock.json.JsonValue jsonValue) throws TokenMarshalException
- Throws:
TokenMarshalException
-
-