Package com.nimbusds.oauth2.sdk.ciba
Class BackChannelTokenDeliveryMode
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.id.Identifier
-
- com.nimbusds.oauth2.sdk.ciba.BackChannelTokenDeliveryMode
-
- All Implemented Interfaces:
Serializable,Comparable<Identifier>,net.minidev.json.JSONAware
@Immutable public final class BackChannelTokenDeliveryMode extends Identifier
CIBA token delivery mode.- OpenID Connect CIBA Flow - Core 1.0, section 5.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BackChannelTokenDeliveryModePINGPing delivery mode.static BackChannelTokenDeliveryModePOLLPoll delivery mode.static BackChannelTokenDeliveryModePUSHPush delivery mode.-
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
-
Constructor Summary
Constructors Constructor Description BackChannelTokenDeliveryMode(String value)Creates a new CIBA token delivery mode with the specified value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)static BackChannelTokenDeliveryModeparse(String value)Parses a CIBA token delivery mode from the specified string.-
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
-
-
-
Field Detail
-
PUSH
public static final BackChannelTokenDeliveryMode PUSH
Push delivery mode. The OP / AS the tokens to a client callback URI.
-
POLL
public static final BackChannelTokenDeliveryMode POLL
Poll delivery mode. The client polls the OP / AS token endpoint to obtain the tokens.
-
PING
public static final BackChannelTokenDeliveryMode PING
Ping delivery mode. The OP / AS sends a notification to a client endpoint that the tokens are available at the token endpoint.
-
-
Constructor Detail
-
BackChannelTokenDeliveryMode
public BackChannelTokenDeliveryMode(String value)
Creates a new CIBA token delivery mode with the specified value.- Parameters:
value- The CIBA token delivery mode value. Must not benull.
-
-
Method Detail
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classIdentifier
-
parse
public static BackChannelTokenDeliveryMode parse(String value) throws ParseException
Parses a CIBA token delivery mode from the specified string.- Parameters:
value- The string value.- Returns:
- The CIBA token delivery mode.
- Throws:
ParseException- On a illegal CIBA token delivery mode.
-
-