Class AsymmetricAlgorithmSpec

java.lang.Object
net.messagevortex.asn1.AbstractBlock
net.messagevortex.asn1.AsymmetricAlgorithmSpec
All Implemented Interfaces:
Serializable, Block, Dumpable
Direct Known Subclasses:
SymmetricAlgorithmSpec

public class AsymmetricAlgorithmSpec extends AbstractBlock implements Serializable, Dumpable

Specification for AsymmetricAlgorithmSpec.

See Also:
  • Field Details

  • Constructor Details

    • AsymmetricAlgorithmSpec

      public AsymmetricAlgorithmSpec(AsymmetricAlgorithmSpec to) throws IOException

      Copy constructor.

      Parameters:
      to - object to clone
      Throws:
      IOException - when failing to copy source object
    • AsymmetricAlgorithmSpec

      public AsymmetricAlgorithmSpec(Algorithm alg, AlgorithmParameter params)
    • AsymmetricAlgorithmSpec

      public AsymmetricAlgorithmSpec(org.bouncycastle.asn1.ASN1Encodable to) throws IOException

      Constructor to build from ASN1 object.

      Parameters:
      to - Object to be parsed
      Throws:
      IOException - when failing to parse ASN1 object
  • Method Details

    • parse

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

      public Algorithm getAlgorithm()

      Gets the algorithm (@see Algorithm).

      Returns:
      the current algorithm
    • getAlgorithmParameter

      public AlgorithmParameter getAlgorithmParameter()

      Get the algorithm parameters (@see AlgorithmParameter).

      Returns:
      the current algorithm parameters
    • dumpValueNotation

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

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

      Dumps an ASN.1 representation of the object.

      Specified by:
      toAsn1Object in interface Dumpable
      Parameters:
      dumpType - the dump type to be used
      Returns:
      the ASN.1 string representation of the object
      Throws:
      IOException - if dumping of the object fails due to an illegal internal state of the object