Package org.bouncycastle.est
Class CSRAttributesResponse
- java.lang.Object
-
- org.bouncycastle.est.CSRAttributesResponse
-
- All Implemented Interfaces:
org.bouncycastle.util.Encodable
public class CSRAttributesResponse extends java.lang.Object implements org.bouncycastle.util.EncodableWrapper class around a CsrAttrs structure.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getEncoded()java.util.Collection<org.bouncycastle.asn1.ASN1ObjectIdentifier>getRequirements()booleanhasRequirement(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid)booleanisAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid)booleanisEmpty()
-
-
-
Constructor Detail
-
CSRAttributesResponse
public CSRAttributesResponse(byte[] responseEncoding) throws ESTExceptionCreate 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
public CSRAttributesResponse(org.bouncycastle.asn1.est.CsrAttrs csrAttrs) throws ESTExceptionCreate a CSRAttributesResponse from the passed in ASN.1 structure.- Parameters:
csrAttrs- an RFC 7030 CsrAttrs structure.- Throws:
ESTException
-
-
Method Detail
-
hasRequirement
public boolean hasRequirement(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid)
-
isAttribute
public boolean isAttribute(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid)
-
isEmpty
public boolean isEmpty()
-
getRequirements
public java.util.Collection<org.bouncycastle.asn1.ASN1ObjectIdentifier> getRequirements()
-
getEncoded
public byte[] getEncoded() throws java.io.IOException- Specified by:
getEncodedin interfaceorg.bouncycastle.util.Encodable- Throws:
java.io.IOException
-
-