| Constructor and Description |
|---|
CSRAttributesResponse(byte[] responseEncoding)
Create a CSRAttributesResponse from the passed in bytes.
|
CSRAttributesResponse(CsrAttrs csrAttrs)
Create a CSRAttributesResponse from the passed in ASN.1 structure.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncoded()
Return a byte array representing the implementing object.
|
Collection<ASN1ObjectIdentifier> |
getRequirements() |
boolean |
hasRequirement(ASN1ObjectIdentifier requirementOid) |
boolean |
isAttribute(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(CsrAttrs csrAttrs) throws ESTException
csrAttrs - an RFC 7030 CsrAttrs structure.ESTExceptionpublic boolean hasRequirement(ASN1ObjectIdentifier requirementOid)
public boolean isAttribute(ASN1ObjectIdentifier requirementOid)
public boolean isEmpty()
public Collection<ASN1ObjectIdentifier> getRequirements()
public byte[] getEncoded()
throws IOException
EncodablegetEncoded in interface EncodableIOException - if an issue arises generation the encoding.Copyright © 2015–2019 The veraPDF Consortium. All rights reserved.