Class PemKeyPair


  • public class PemKeyPair
    extends java.lang.Object
    PEM-encoded key/certificate pair.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String certificate
      The encoded certificate.
      protected java.lang.String key
      The encoded key.
    • Constructor Summary

      Constructors 
      Constructor Description
      PemKeyPair()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Equals method.
      java.lang.String getCertificate()
      Gets encoded certificate.
      java.lang.String getKey()
      Gets encoded key.
      int hashCode()
      Hashcode.
      void setCertificate​(java.lang.String certificate)
      Sets encoded certificate.
      void setKey​(java.lang.String key)
      Sets encoded key.
      java.lang.String toString()
      toString()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • certificate

        protected java.lang.String certificate
        The encoded certificate.
      • key

        protected java.lang.String key
        The encoded key.
    • Constructor Detail

      • PemKeyPair

        public PemKeyPair()
    • Method Detail

      • getCertificate

        public java.lang.String getCertificate()
        Gets encoded certificate.
        Returns:
        Encoded certificate.
      • setCertificate

        public void setCertificate​(java.lang.String certificate)
        Sets encoded certificate.
        Parameters:
        certificate - Encoded certificate.
      • getKey

        public java.lang.String getKey()
        Gets encoded key.
        Returns:
        Encoded key.
      • setKey

        public void setKey​(java.lang.String key)
        Sets encoded key.
        Parameters:
        key - Encoded key.
      • hashCode

        public int hashCode()
        Hashcode.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Equals method.
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString()
        Overrides:
        toString in class java.lang.Object