Class PemObject

  • All Implemented Interfaces:
    PemObjectGenerator

    public class PemObject
    extends java.lang.Object
    implements PemObjectGenerator
    A generic PEM object - type, header properties, and byte content.
    • Constructor Summary

      Constructors 
      Constructor Description
      PemObject​(java.lang.String type, byte[] content)
      Generic constructor for object without headers.
      PemObject​(java.lang.String type, java.util.List headers, byte[] content)
      Generic constructor for object with headers.
    • Constructor Detail

      • PemObject

        public PemObject​(java.lang.String type,
                         byte[] content)
        Generic constructor for object without headers.
        Parameters:
        type - pem object type.
        content - the binary content of the object.
      • PemObject

        public PemObject​(java.lang.String type,
                         java.util.List headers,
                         byte[] content)
        Generic constructor for object with headers.
        Parameters:
        type - pem object type.
        headers - a list of PemHeader objects.
        content - the binary content of the object.