Class PemCredentialConfigurationProperties
java.lang.Object
se.swedenconnect.security.credential.config.properties.AbstractBaseCredentialConfigurationProperties
se.swedenconnect.security.credential.config.properties.PemCredentialConfigurationProperties
- All Implemented Interfaces:
BaseCredentialConfiguration
,PemCredentialConfiguration
public class PemCredentialConfigurationProperties
extends AbstractBaseCredentialConfigurationProperties
implements PemCredentialConfiguration
Configuration properties for creating a
PkiCredential
using PEM-encoded certificate(s) and private keys.- Author:
- Martin Lindström
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionLocation or content of the certificate or certificate chain in PEM format.Password used to decrypt an encrypted private key.Location or content of the private key in PEM format.Location or content of the public key in PEM format.Methods inherited from class se.swedenconnect.security.credential.config.properties.AbstractBaseCredentialConfigurationProperties
expiresAt, issuedAt, keyId, metadata, name
-
Constructor Details
-
PemCredentialConfigurationProperties
public PemCredentialConfigurationProperties()
-
-
Method Details
-
publicKey
Location or content of the public key in PEM format.This setting is mutually exclusive with the
PemCredentialConfiguration.certificates()
setting.- Specified by:
publicKey
in interfacePemCredentialConfiguration
- Returns:
- the location or content of the public key
-
certificates
Location or content of the certificate or certificate chain in PEM format.If more than one certificate is supplied, the entity certificate, i.e., the certificate holding the public key of the key pair, must be placed first.
This setting is mutually exclusive with the
PemCredentialConfiguration.publicKey()
setting.- Specified by:
certificates
in interfacePemCredentialConfiguration
- Returns:
- the location or content of the certificate or certificate chain in PEM format
-
privateKey
Location or content of the private key in PEM format.- Specified by:
privateKey
in interfacePemCredentialConfiguration
- Returns:
- the location or content of the private key in PEM format
-
keyPassword
Password used to decrypt an encrypted private key.- Specified by:
keyPassword
in interfacePemCredentialConfiguration
- Returns:
- key password
-