@Immutable public final class Issuer extends Identifier
Valid issuer identifiers are URIs with "https" schema and no query or fragment component.
DEFAULT_BYTE_LENGTH| Constructor and Description |
|---|
Issuer(Identifier value)
Creates a new issuer identifier with the specified value.
|
Issuer(String value)
Creates a new issuer identifier with the specified value.
|
Issuer(URI value)
Creates a new issuer identifier with the specified URI value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
boolean |
isValid()
Checks if this issuer is a valid identifier.
|
static boolean |
isValid(Issuer value)
Checks if the specified issuer is a valid identifier.
|
static boolean |
isValid(String value)
Checks if the specified string represents a valid issuer identifier.
|
static boolean |
isValid(URI value)
Checks if the specified URI represents a valid issuer identifier.
|
compareTo, getValue, hashCode, toJSONString, toStringpublic Issuer(String value)
value - The issuer identifier value. Must not be null
or empty string.public Issuer(URI value)
value - The URI value. Must not be null.public Issuer(Identifier value)
value - The value. Must not be null.public static boolean isValid(String value)
null-safe.value - The issuer string.true if the string represents a valid issuer
identifier, else false.public static boolean isValid(Issuer value)
null-safe.value - The issuer.true if the value is a valid identifier, else
false.public static boolean isValid(URI value)
null-safe.value - The URI.true if the values represents a valid issuer
identifier, else false.public boolean isValid()
null-safe.true if the value is a valid identifier, else
false.public boolean equals(Object object)
equals in class IdentifierCopyright © 2017 Connect2id Ltd.. All rights reserved.