Package com.io7m.certusine.api
Record Class CSCertificate
java.lang.Object
java.lang.Record
com.io7m.certusine.api.CSCertificate
- Record Components:
name- The name used to refer to certificatekeyPair- The keypair used for the certificatehosts- The list of hosts in the certificate
public record CSCertificate(CSCertificateName name, KeyPair keyPair, List<String> hosts)
extends Record
A request for a certificate within a domain. A certificate is used to assign
some degree of trust as to the identity of the holder of the keypair.
-
Constructor Summary
ConstructorsConstructorDescriptionCSCertificate(CSCertificateName name, KeyPair keyPair, List<String> hosts) A request for a certificate within a domain. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fullyQualifiedHostNames(CSDomain domain) final inthashCode()Returns a hash code value for this object.hosts()Returns the value of thehostsrecord component.keyPair()Returns the value of thekeyPairrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CSCertificate
A request for a certificate within a domain. A certificate is used to assign some degree of trust as to the identity of the holder of the keypair.- Parameters:
name- The name used to refer to certificatekeyPair- The keypair used for the certificatehosts- The list of hosts in the certificate
-
-
Method Details
-
fullyQualifiedHostNames
- Parameters:
domain- The domain- Returns:
- The fully-qualified hostnames for this certificate
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
keyPair
Returns the value of thekeyPairrecord component.- Returns:
- the value of the
keyPairrecord component
-
hosts
Returns the value of thehostsrecord component.- Returns:
- the value of the
hostsrecord component
-