Class VOMSACGenerator.RandomContentSigner

java.lang.Object
org.italiangrid.voms.asn1.VOMSACGenerator.RandomContentSigner
All Implemented Interfaces:
org.bouncycastle.operator.ContentSigner
Enclosing class:
VOMSACGenerator

static class VOMSACGenerator.RandomContentSigner extends Object implements org.bouncycastle.operator.ContentSigner
A ContentSigner implementation that generates random signature bits.

This is used for testing purposes to create attribute certificates with fake signatures.

  • Field Details

    • SIG_LENGHT

      public static final int SIG_LENGHT
      The length of the randomly generated signature.
      See Also:
    • bos

    • sigAlgId

      org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId
  • Constructor Details

    • RandomContentSigner

      public RandomContentSigner(String sigAlgName)
      Constructs a RandomContentSigner with the given signature algorithm name.
      Parameters:
      sigAlgName - the name of the signature algorithm
  • Method Details

    • getAlgorithmIdentifier

      public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
      Specified by:
      getAlgorithmIdentifier in interface org.bouncycastle.operator.ContentSigner
    • getOutputStream

      public OutputStream getOutputStream()
      Specified by:
      getOutputStream in interface org.bouncycastle.operator.ContentSigner
    • getSignature

      public byte[] getSignature()
      Specified by:
      getSignature in interface org.bouncycastle.operator.ContentSigner