All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.spiffe.helper.keystore.PrivateKeyEntry Maven / Gradle / Ivy

Go to download

Java SPIFFE Library Helper module to store X.509 SVIDs and Bundles in a Java KeyStore in disk

There is a newer version: 0.8.11
Show newest version
package io.spiffe.helper.keystore;

import lombok.AccessLevel;
import lombok.Builder;
import lombok.Data;
import lombok.Setter;

import java.security.Key;
import java.security.cert.X509Certificate;

@Data
class PrivateKeyEntry {

    @Setter(AccessLevel.NONE)
    private String alias;

    @Setter(AccessLevel.NONE)
    private Key privateKey;

    @Setter(AccessLevel.NONE)
    private String password;

    @Setter(AccessLevel.NONE)
    private X509Certificate[] certificateChain;

    @Builder
    PrivateKeyEntry(
            final String alias,
            final Key privateKey,
            final String password,
            final X509Certificate... certificateChain) {
        this.alias = alias;
        this.privateKey = privateKey;
        this.password = password;
        this.certificateChain = certificateChain.clone();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy