public class DecodedSecret extends com.nimbusds.oauth2.sdk.auth.Secret
Modifier and Type | Method and Description |
---|---|
static DecodedSecret |
createForHashedSecret(SecretVerifier verifier)
Creates a new decoded hashed secret.
|
static DecodedSecret |
createForPlainSecret(String plainValue)
Creates a new decoded plain secret.
|
boolean |
equals(Object o) |
String |
getEncodedValue()
Returns the encoded (stored) value.
|
DecodedSecret |
withEncodedValue(String encodedValue)
Returns a new decoded secret associating the specified encoded
(stored) value with it.
|
public String getEncodedValue()
null
if not specified.public DecodedSecret withEncodedValue(String encodedValue)
encodedValue
- The encoded (stored) value, null
if not
specified.public boolean equals(Object o)
equals
in class com.nimbusds.oauth2.sdk.auth.Secret
public static DecodedSecret createForPlainSecret(String plainValue)
plainValue
- The plain secret value. Must not be empty or
null
.public static DecodedSecret createForHashedSecret(SecretVerifier verifier)
verifier
- Verifier to check secrets against the hash. Must not
be null
.Copyright © 2021 Connect2id Ltd.. All rights reserved.