Package org.bouncycastle.est
Class CSRAttributesResponse
java.lang.Object
org.bouncycastle.est.CSRAttributesResponse
- All Implemented Interfaces:
org.bouncycastle.util.Encodable
Wrapper class around a CsrAttrs structure.
-
Constructor Summary
ConstructorDescriptionCSRAttributesResponse
(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[]
Collection
<org.bouncycastle.asn1.ASN1ObjectIdentifier> boolean
hasRequirement
(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid) boolean
isAttribute
(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid) boolean
isEmpty()
-
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
public boolean hasRequirement(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid) -
isAttribute
public boolean isAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid) -
isEmpty
public boolean isEmpty() -
getRequirements
-
getEncoded
- Specified by:
getEncoded
in interfaceorg.bouncycastle.util.Encodable
- Throws:
IOException
-