java.lang.Object
org.shredzone.acme4j.Identifier
- Alle implementierten Schnittstellen:
Serializable
Represents an identifier.
The ACME protocol only defines the DNS identifier, which identifies a domain name. acme4j also supports IP identifiers.
CAs, and other acme4j modules, may define further, proprietary identifier types.
- Seit:
- 2.3
- Siehe auch:
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungIdentifier
(String type, String value) Creates a newIdentifier
.Identifier
(JSON json) Creates a newIdentifier
from the givenJSON
structure. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGives the permission to authorize subdomains of this domain, as required in RFC-9444.static Identifier
Creates a new DNS identifier for the given domain name.boolean
protected final void
finalize()
Returns the domain name if this is a DNS identifier.getIP()
Returns the IP address if this is an IP identifier.getType()
Returns the identifier type.getValue()
Returns the identifier value.int
hashCode()
static Identifier
Creates a new IP identifier for the givenInetAddress
.static Identifier
ip
(InetAddress ip) Creates a new IP identifier for the givenInetAddress
.toMap()
Returns the identifier as JSON map.toString()
withAncestorDomain
(String domain) Sets an ancestor domain, as required in RFC-9444.
-
Felddetails
-
TYPE_DNS
Type constant for DNS identifiers.- Siehe auch:
-
TYPE_IP
Type constant for IP identifiers.- Siehe auch:
-
-
Konstruktordetails
-
Identifier
Creates a newIdentifier
.This is a generic constructor for identifiers. Refer to the documentation of your CA to find out about the accepted identifier types and values.
Note that for DNS identifiers, no ASCII encoding of unicode domain takes place here. Use
dns(String)
instead.- Parameter:
type
- Identifier typevalue
- Identifier value
-
Identifier
Creates a newIdentifier
from the givenJSON
structure.- Parameter:
json
-JSON
containing the identifier data
-
-
Methodendetails
-
dns
Creates a new DNS identifier for the given domain name.- Parameter:
domain
- Domain name. Unicode domains are automatically ASCII encoded.- Gibt zurück:
- New
Identifier
-
ip
Creates a new IP identifier for the givenInetAddress
.- Parameter:
ip
-InetAddress
- Gibt zurück:
- New
Identifier
-
ip
Creates a new IP identifier for the givenInetAddress
.- Parameter:
ip
- IP address asString
- Gibt zurück:
- New
Identifier
- Seit:
- 2.7
-
withAncestorDomain
Sets an ancestor domain, as required in RFC-9444.- Parameter:
domain
- The ancestor domain to be set. Unicode domains are automatically ASCII encoded.- Gibt zurück:
- An
Identifier
that contains the ancestor domain. - Seit:
- 3.3.0
-
allowSubdomainAuth
Gives the permission to authorize subdomains of this domain, as required in RFC-9444.- Gibt zurück:
- An
Identifier
that allows subdomain auths. - Seit:
- 3.3.0
-
getType
Returns the identifier type. -
getValue
Returns the identifier value. -
getDomain
Returns the domain name if this is a DNS identifier.- Gibt zurück:
- Domain name. Unicode domains are ASCII encoded.
- Löst aus:
AcmeProtocolException
- if this is not a DNS identifier.
-
getIP
Returns the IP address if this is an IP identifier.- Gibt zurück:
InetAddress
- Löst aus:
AcmeProtocolException
- if this is not a DNS identifier.
-
toMap
Returns the identifier as JSON map. -
toString
-
equals
-
hashCode
-
finalize
-