Class CSRAttributesResponse

  • All Implemented Interfaces:
    org.bouncycastle.util.Encodable

    public class CSRAttributesResponse
    extends java.lang.Object
    implements org.bouncycastle.util.Encodable
    Wrapper 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()  
      boolean hasRequirement​(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid)  
      boolean isAttribute​(org.bouncycastle.asn1.ASN1ObjectIdentifier requirementOid)  
      boolean isEmpty()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 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:
        getEncoded in interface org.bouncycastle.util.Encodable
        Throws:
        java.io.IOException