public class CSRAttributesResponse
extends java.lang.Object
implements org.bouncycastle.util.Encodable
| Constructor and Description |
|---|
CSRAttributesResponse(byte[] responseEncoding)
Create a CSRAttributesResponse from the passed in bytes.
|
CSRAttributesResponse(org.bouncycastle.asn1.est.CsrAttrs csrAttrs)
Create a CSRAttributesResponse from the passed in ASN.1 structure.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncoded() |
java.util.Collection<org.bouncycastle.asn1.ASN1ObjectIdentifier> |
getRequirements() |
boolean |
hasRequirement(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid) |
boolean |
isAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid) |
boolean |
isEmpty() |
public CSRAttributesResponse(byte[] responseEncoding)
throws ESTException
responseEncoding - BER/DER encoding of the certificate.ESTException - in the event of corrupted data, or an incorrect structure.public CSRAttributesResponse(org.bouncycastle.asn1.est.CsrAttrs csrAttrs)
throws ESTException
csrAttrs - an RFC 7030 CsrAttrs structure.ESTExceptionpublic boolean hasRequirement(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid)
public boolean isAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid)
public boolean isEmpty()
public java.util.Collection<org.bouncycastle.asn1.ASN1ObjectIdentifier> getRequirements()
public byte[] getEncoded()
throws java.io.IOException
getEncoded in interface org.bouncycastle.util.Encodablejava.io.IOException