| Constructor and Description |
|---|
AuthenticationState()
Creates a new
AuthenticationState instance. |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationState |
add(String key,
Object object)
Adds the specified value.
|
Boolean |
asBoolean()
Returns the
AuthenticationState as a Boolean object. |
Integer |
asInteger()
Returns the
AuthenticationState as an Integer object. |
AuthenticationState |
get(String key)
Returns the specified item value.
|
boolean |
isDefined(String key)
Returns
true if this AuthenticationState contains the specified item. |
public AuthenticationState()
AuthenticationState instance.public AuthenticationState add(String key, Object object)
Adds the specified value.
If adding to a list value, the specified key must be parseable as an unsigned base-10 integer and be less than or equal to the list size. Adding a value to a list shifts any existing elements at or above the specified index to the right by one.
key - The Map key or List index to add.object - The Java object to add.AuthenticationState.AuthenticationStateException - If not a Map or the Map key already
exists.public boolean isDefined(String key)
true if this AuthenticationState contains the specified item.key - The Map key or List index of the item to seek.true if this AuthenticationState contains the specified member.NullPointerException - If key is null.public AuthenticationState get(String key)
AuthenticationState containing null is returned.key - The Map key or List index identifying the item to return.AuthenticationState containing the value or null.public Boolean asBoolean()
AuthenticationState as a Boolean object. If the value is
null, this method returns null.AuthenticationStateException - If the value is not a boolean type.public Integer asInteger()
AuthenticationState as an Integer object. This may involve
rounding or truncation. If the value is null, this method returns null.AuthenticationStateException - If the value is not a number.Copyright © 2025 Open Identity Platform Community. All rights reserved.