Package org.bouncycastle.est
Class CSRAttributesResponse
java.lang.Object
org.bouncycastle.est.CSRAttributesResponse
- All Implemented Interfaces:
Encodable
Wrapper class around a CsrAttrs structure.
-
Constructor Summary
ConstructorsConstructorDescriptionCSRAttributesResponse(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. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Return a byte array representing the implementing object.booleanhasRequirement(ASN1ObjectIdentifier requirementOid) booleanisAttribute(ASN1ObjectIdentifier requirementOid) booleanisEmpty()
-
Constructor Details
-
CSRAttributesResponse
Create a CSRAttributesResponse from the passed in bytes.- Parameters:
responseEncoding- BER/DER encoding of the certificate.- Throws:
ESTException- in the event of corrupted data, or an incorrect structure.
-
CSRAttributesResponse
Create a CSRAttributesResponse from the passed in ASN.1 structure.- Parameters:
csrAttrs- an RFC 7030 CsrAttrs structure.- Throws:
ESTException
-
-
Method Details
-
hasRequirement
-
isAttribute
-
isEmpty
public boolean isEmpty() -
getRequirements
-
getEncoded
Description copied from interface:EncodableReturn a byte array representing the implementing object.- Specified by:
getEncodedin interfaceEncodable- Returns:
- a byte array representing the encoding.
- Throws:
IOException- if an issue arises generation the encoding.
-