Class Descriptor

java.lang.Object
org.cryptacular.pem.Descriptor

public final class Descriptor extends Object
Descriptor for PemObject
Author:
Middleware Services
  • Constructor Details

    • Descriptor

      public Descriptor(Format formatParam, String explanatoryTextParam, String typeParam)
      Constructor with RFC format and explanatory text.
      Parameters:
      formatParam - RFC governing PEM format
      explanatoryTextParam - Explanatory text if applicable
      typeParam - Data type
  • Method Details

    • getFormat

      public Format getFormat()
      Returns:
      The RFC Format governing this PEM data.
    • getType

      public String getType()
      Returns:
      The encoded data type
    • getExplanatoryText

      public String getExplanatoryText()
      Returns:
      The explanatory text included with this PEM as defined by RFC-7468 5.2 null is returned if this PEM file is not of Format.RFC7468