Package org.italiangrid.voms.asn1
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 java.lang.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 Summary
Fields Modifier and Type Field Description (package private) java.io.ByteArrayOutputStream
bos
static int
SIG_LENGHT
The length of the randomly generated signature.(package private) org.bouncycastle.asn1.x509.AlgorithmIdentifier
sigAlgId
-
Constructor Summary
Constructors Constructor Description RandomContentSigner(java.lang.String sigAlgName)
Constructs a RandomContentSigner with the given signature algorithm name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.x509.AlgorithmIdentifier
getAlgorithmIdentifier()
java.io.OutputStream
getOutputStream()
byte[]
getSignature()
-
-
-
Field Detail
-
SIG_LENGHT
public static final int SIG_LENGHT
The length of the randomly generated signature.- See Also:
- Constant Field Values
-
bos
java.io.ByteArrayOutputStream bos
-
sigAlgId
org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId
-
-
Method Detail
-
getAlgorithmIdentifier
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
- Specified by:
getAlgorithmIdentifier
in interfaceorg.bouncycastle.operator.ContentSigner
-
getOutputStream
public java.io.OutputStream getOutputStream()
- Specified by:
getOutputStream
in interfaceorg.bouncycastle.operator.ContentSigner
-
getSignature
public byte[] getSignature()
- Specified by:
getSignature
in interfaceorg.bouncycastle.operator.ContentSigner
-
-