Class KeyPairInfo


  • public class KeyPairInfo
    extends java.lang.Object
    A private key and corresponding certificates.
    Author:
    Carl Harris
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  KeyPairInfo.Builder
      A builder that constructs a KeyPairInfo instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static KeyPairInfo.Builder builder()
      Creates a builder that constructs a new instance.
      java.util.List<java.security.cert.X509Certificate> getCertificates()
      Gets the list of certificates associated with the privateKey.
      java.lang.String getId()
      Gets the ID specified for this privateKey.
      java.security.PrivateKey getPrivateKey()
      Gets the subject privateKey.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • builder

        public static KeyPairInfo.Builder builder()
        Creates a builder that constructs a new instance.
        Returns:
        builder
      • getId

        public java.lang.String getId()
        Gets the ID specified for this privateKey.
        Returns:
        ID or null if none was specified
      • getPrivateKey

        public java.security.PrivateKey getPrivateKey()
        Gets the subject privateKey.
        Returns:
        privateKey
      • getCertificates

        public java.util.List<java.security.cert.X509Certificate> getCertificates()
        Gets the list of certificates associated with the privateKey.
        Returns:
        certificate list (possibly empty, but never null)