Class DeviceSecret
java.lang.Object
com.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.openid.connect.sdk.nativesso.DeviceSecret
- All Implemented Interfaces:
Serializable
,Comparable<Identifier>
,net.minidev.json.JSONAware
Device secret.
Related specifications:
- OpenID Connect Native SSO for Mobile Apps 1.0
- See Also:
-
Field Summary
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
Constructor Summary
ConstructorsConstructorDescriptionDeviceSecret
(String value) Creates a new device secret with the specified value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static DeviceSecret
Parses a device secret from the specified string.Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
Constructor Details
-
DeviceSecret
Creates a new device secret with the specified value.- Parameters:
value
- The device secret value. Must not benull
or empty string.
-
-
Method Details
-
equals
- Overrides:
equals
in classIdentifier
-
parse
Parses a device secret from the specified string.- Parameters:
s
- The string to parse,null
or empty if no nonce is specified.- Returns:
- The device string,
null
if the parsed string wasnull
or empty.
-