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 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
FieldsModifier and TypeFieldDescription(package private) ByteArrayOutputStreamstatic final intThe length of the randomly generated signature.(package private) org.bouncycastle.asn1.x509.AlgorithmIdentifier -
Constructor Summary
ConstructorsConstructorDescriptionRandomContentSigner(String sigAlgName) Constructs a RandomContentSigner with the given signature algorithm name. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.x509.AlgorithmIdentifierbyte[]
-
Field Details
-
SIG_LENGHT
public static final int SIG_LENGHTThe length of the randomly generated signature.- See Also:
-
bos
-
sigAlgId
org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId
-
-
Constructor Details
-
RandomContentSigner
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:
getAlgorithmIdentifierin interfaceorg.bouncycastle.operator.ContentSigner
-
getOutputStream
- Specified by:
getOutputStreamin interfaceorg.bouncycastle.operator.ContentSigner
-
getSignature
public byte[] getSignature()- Specified by:
getSignaturein interfaceorg.bouncycastle.operator.ContentSigner
-