Package de.gematik.test.tiger.common.pki
Class TigerPkiIdentity
- java.lang.Object
-
- de.gematik.test.tiger.common.pki.TigerPkiIdentity
-
- Direct Known Subclasses:
TigerConfigurationPkiIdentity
public class TigerPkiIdentity extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTigerPkiIdentity.TigerPkiIdentityBuilder
-
Constructor Summary
Constructors Constructor Description TigerPkiIdentity()TigerPkiIdentity(File file, String fileLoadingInformation)TigerPkiIdentity(String fileLoadingInformation)TigerPkiIdentity(X509Certificate certificate, PrivateKey privateKey)TigerPkiIdentity(X509Certificate certificate, PrivateKey privateKey, Optional<String> keyId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TigerPkiIdentityaddCertificateToCertificateChain(X509Certificate newChainCertificate)static TigerPkiIdentity.TigerPkiIdentityBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)X509CertificategetCertificate()List<X509Certificate>getCertificateChain()Optional<String>getKeyId()PrivateKeygetPrivateKey()inthashCode()booleanhasValidChainWithRootCa()voidsetCertificate(X509Certificate certificate)voidsetKeyId(Optional<String> keyId)voidsetPrivateKey(PrivateKey privateKey)KeyStoretoKeyStoreWithPassword(String password)StringtoString()TigerPkiIdentitywithKeyId(Optional<String> keyId)
-
-
-
Constructor Detail
-
TigerPkiIdentity
public TigerPkiIdentity(X509Certificate certificate, PrivateKey privateKey)
-
TigerPkiIdentity
public TigerPkiIdentity(String fileLoadingInformation)
-
TigerPkiIdentity
public TigerPkiIdentity()
-
TigerPkiIdentity
@ConstructorProperties({"certificate","privateKey","keyId"}) public TigerPkiIdentity(X509Certificate certificate, PrivateKey privateKey, Optional<String> keyId)
-
-
Method Detail
-
addCertificateToCertificateChain
public TigerPkiIdentity addCertificateToCertificateChain(X509Certificate newChainCertificate)
-
hasValidChainWithRootCa
public boolean hasValidChainWithRootCa()
-
builder
public static TigerPkiIdentity.TigerPkiIdentityBuilder builder()
-
getCertificate
public X509Certificate getCertificate()
-
getPrivateKey
public PrivateKey getPrivateKey()
-
getCertificateChain
public List<X509Certificate> getCertificateChain()
-
setCertificate
public void setCertificate(X509Certificate certificate)
-
setPrivateKey
public void setPrivateKey(PrivateKey privateKey)
-
canEqual
protected boolean canEqual(Object other)
-
withKeyId
public TigerPkiIdentity withKeyId(Optional<String> keyId)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
-