Class CSRAttributesResponse

java.lang.Object
org.bouncycastle.est.CSRAttributesResponse
All Implemented Interfaces:
org.bouncycastle.util.Encodable

public class CSRAttributesResponse extends Object implements org.bouncycastle.util.Encodable
Wrapper class around a CsrAttrs structure.
  • Constructor Details

    • CSRAttributesResponse

      public CSRAttributesResponse(byte[] responseEncoding) throws ESTException
      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

      public CSRAttributesResponse(org.bouncycastle.asn1.est.CsrAttrs csrAttrs) throws ESTException
      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

      public Collection<org.bouncycastle.asn1.ASN1ObjectIdentifier> getRequirements()
    • getEncoded

      public byte[] getEncoded() throws IOException
      Specified by:
      getEncoded in interface org.bouncycastle.util.Encodable
      Throws:
      IOException