Class OctetArrayBCPGKey

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void encode​(BCPGOutputStream out)  
      byte[] getEncoded()
      return the standard PGP encoding of the key.
      java.lang.String getFormat()
      Return the base format for this key - in the case of the symmetric keys it will generally be raw indicating that the key is just a straight byte representation, for an asymmetric key the format will be PGP, indicating the key is a string of MPIs or octets encoded in PGP format.
      byte[] getKey()  
      • Methods inherited from class java.lang.Object

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

      • getEncoded

        public byte[] getEncoded()
        return the standard PGP encoding of the key.
        Specified by:
        getEncoded in interface BCPGKey
        Specified by:
        getEncoded in interface org.bouncycastle.util.Encodable
        Overrides:
        getEncoded in class BCPGObject
        Returns:
        byte[]
        See Also:
        BCPGKey.getEncoded()
      • getFormat

        public java.lang.String getFormat()
        Description copied from interface: BCPGKey
        Return the base format for this key - in the case of the symmetric keys it will generally be raw indicating that the key is just a straight byte representation, for an asymmetric key the format will be PGP, indicating the key is a string of MPIs or octets encoded in PGP format.
        Specified by:
        getFormat in interface BCPGKey
        Returns:
        "RAW" or "PGP"
      • getKey

        public byte[] getKey()