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() |
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.ESTException
public boolean hasRequirement(ASN1ObjectIdentifier requirementOid)
public boolean isAttribute(ASN1ObjectIdentifier requirementOid)
public boolean isEmpty()
public Collection<ASN1ObjectIdentifier> getRequirements()
public byte[] getEncoded() throws IOException
getEncoded
in interface Encodable
IOException
Copyright © 2020 BouncyCastle.org. All rights reserved.