Class AlgorithmParameter

java.lang.Object
net.messagevortex.asn1.AbstractBlock
net.messagevortex.asn1.AlgorithmParameter
All Implemented Interfaces:
Serializable, Comparable<AlgorithmParameter>, Block, Dumpable

public class AlgorithmParameter extends AbstractBlock implements Serializable, Comparable<AlgorithmParameter>, Dumpable

ASN1 parser block for algorithm parameters.

See Also:
  • Field Details

  • Constructor Details

    • AlgorithmParameter

      public AlgorithmParameter()
    • AlgorithmParameter

      public AlgorithmParameter(org.bouncycastle.asn1.ASN1Encodable ae) throws IOException

      Create object from ASN.1 code.

      Parameters:
      ae - the ASN.1 code
      Throws:
      IOException - if parsing of ASN.1 code fails
    • AlgorithmParameter

      public AlgorithmParameter(AlgorithmParameter p)

      Copy constructor.

      Parameters:
      p - the ASN.1 code
  • Method Details

    • put

      public final String put(String id, String value)
    • put

      public final String put(int id, String value)

      Puts a key/value pair into the list.

      Parameters:
      id - the key (must be known to the subsystem @see Parameter)
      value - the value to be stored
      Returns:
      the perviously set value if it had been set before
    • put

      public final String put(Parameter parameter, String value)

      Puts a key/value pair into the list.

      Parameters:
      parameter - the key
      value - the value to be stored
      Returns:
      the perviously set value if it had been set before
    • get

      public final String get(String id)

      Gets a value identified by a key from the list.

      Parameters:
      id - the key
      Returns:
      the value or null if not found
    • get

      public String get(Parameter p)
    • get

      public String get(int id)
    • parse

      protected final void parse(org.bouncycastle.asn1.ASN1Encodable ae) throws IOException
      Specified by:
      parse in class AbstractBlock
      Throws:
      IOException
    • dumpValueNotation

      public String dumpValueNotation(String prefix, DumpType dumpType)
      Specified by:
      dumpValueNotation in interface Block
    • toAsn1Object

      public org.bouncycastle.asn1.ASN1Object toAsn1Object(DumpType dt)
      Description copied from interface: Dumpable

      Dumps an ASN.1 representation of the object.

      Specified by:
      toAsn1Object in interface Dumpable
      Parameters:
      dt - the dump type to be used
      Returns:
      the ASN.1 string representation of the object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(AlgorithmParameter o)
      Specified by:
      compareTo in interface Comparable<AlgorithmParameter>