|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.oauth2.sdk.AuthorizationCode
@Immutable public final class AuthorizationCode
Authorisation code. A maximum authorization code lifetime of 10 minutes is recommended. This class is immutable.
Related specifications:
Constructor Summary | |
---|---|
AuthorizationCode()
Creates a new authorisation code with a randomly generated value. |
|
AuthorizationCode(int length)
Creates a new authorisation code with a randomly generated value of the specified length. |
|
AuthorizationCode(String value)
Creates a new authorisation code with the specified value. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Overrides Object.equals() . |
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier |
---|
getValue, hashCode, toJSONString, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AuthorizationCode(String value)
value
- The code value. Must not be null
or empty
string.public AuthorizationCode(int length)
length
- The number of characters. Must be a positive integer.public AuthorizationCode()
Method Detail |
---|
public boolean equals(Object object)
Identifier
Object.equals()
.
equals
in class Identifier
object
- The object to compare to.
true
if the objects have the same value, otherwise
false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |