com.nimbusds.oauth2.sdk.id
Class Issuer
java.lang.Object
com.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.oauth2.sdk.id.Issuer
- All Implemented Interfaces:
- net.minidev.json.JSONAware
@Immutable
public final class Issuer
- extends Identifier
Issuer identifier. This class is immutable.
- Author:
- Vladimir Dzhuvinov
Constructor Summary |
Issuer()
Creates a new issuer identifier with a randomly generated value. |
Issuer(int length)
Creates a new issuer identifier with a randomly generated value of
the specified length. |
Issuer(String value)
Creates a new issuer identifier with the specified value. |
Method Summary |
boolean |
equals(Object object)
Overrides Object.equals() . |
Issuer
public Issuer(String value)
- Creates a new issuer identifier with the specified value.
- Parameters:
value
- The issuer identifier value. Must not be null
or empty string.
Issuer
public Issuer(int length)
- Creates a new issuer identifier with a randomly generated value of
the specified length. The value will be made up of mixed-case
alphanumeric ASCII characters.
- Parameters:
length
- The number of characters. Must be a positive integer.
Issuer
public Issuer()
- Creates a new issuer identifier with a randomly generated value. The
value will be made up of 32 mixed-case alphanumeric ASCII
characters.
equals
public boolean equals(Object object)
- Description copied from class:
Identifier
- Overrides
Object.equals()
.
- Specified by:
equals
in class Identifier
- Parameters:
object
- The object to compare to.
- Returns:
true
if the objects have the same value, otherwise
false
.
Copyright © 2013 NimbusDS. All Rights Reserved.