Record Class ServiceClientKeyProperties
java.lang.Object
java.lang.Record
com.irurueta.authserver.serviceclient.infrastructure.resourceserver.ServiceClientKeyProperties
- Record Components:
privateKey- the PEM text, ornull/ blank when there is none.privateKeyPath- path of a PEM file, ornullwhen there is none.keyId-kidwritten in the assertion header, ornullto write none.
@ConfigurationProperties(prefix="service-client.auth.key")
public record ServiceClientKeyProperties(String privateKey, Path privateKeyPath, String keyId)
extends Record
Private key with which the
private_key_jwt assertion is signed (service-client.auth.key.*): an
unencrypted RSA key in PKCS#8 PEM, given inline (the CLI profiles read it from the SERVICE_CLIENT_PRIVATE_KEY
environment variable) or as the path of a file. The inline value wins when both are given.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thekeyIdrecord component.private final StringThe field for theprivateKeyrecord component.private final PathThe field for theprivateKeyPathrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionServiceClientKeyProperties(String privateKey, Path privateKeyPath, String keyId) Creates an instance of aServiceClientKeyPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.keyId()Returns the value of thekeyIdrecord component.Returns the value of theprivateKeyrecord component.Returns the value of theprivateKeyPathrecord component.toString()Describes the settings without the key.
-
Field Details
-
privateKey
The field for theprivateKeyrecord component. -
privateKeyPath
The field for theprivateKeyPathrecord component. -
keyId
The field for thekeyIdrecord component.
-
-
Constructor Details
-
ServiceClientKeyProperties
Creates an instance of aServiceClientKeyPropertiesrecord class.- Parameters:
privateKey- the value for theprivateKeyrecord componentprivateKeyPath- the value for theprivateKeyPathrecord componentkeyId- the value for thekeyIdrecord component
-
-
Method Details
-
toString
Describes the settings without the key. -
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). -
privateKey
Returns the value of theprivateKeyrecord component.- Returns:
- the value of the
privateKeyrecord component
-
privateKeyPath
Returns the value of theprivateKeyPathrecord component.- Returns:
- the value of the
privateKeyPathrecord component
-
keyId
Returns the value of thekeyIdrecord component.- Returns:
- the value of the
keyIdrecord component
-