Class GenericControl

    • Constructor Summary

      Constructors 
      Constructor Description
      GenericControl​(java.lang.String oid, boolean critical, byte[] encoded)
      Creates a new generic control.
      GenericControl​(java.lang.String oid, boolean critical, DERBuffer encoded)
      Creates a new generic control.
      GenericControl​(java.lang.String oid, byte[] encoded)
      Creates a new generic control.
      GenericControl​(java.lang.String oid, DERBuffer encoded)
      Creates a new generic control.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void decode​(DERBuffer encoded)
      Initializes this response control with the supplied BER encoded data.
      byte[] encode()
      Provides the BER encoding of this control.
      boolean equals​(java.lang.Object o)  
      int hashCode()
      Returns the hash code for this object.
      boolean hasValue()
      Returns whether the control has a value associated with it.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GenericControl

        public GenericControl​(java.lang.String oid,
                              byte[] encoded)
        Creates a new generic control.
        Parameters:
        oid - control OID
        encoded - control value
      • GenericControl

        public GenericControl​(java.lang.String oid,
                              DERBuffer encoded)
        Creates a new generic control.
        Parameters:
        oid - control OID
        encoded - control value
      • GenericControl

        public GenericControl​(java.lang.String oid,
                              boolean critical,
                              byte[] encoded)
        Creates a new generic control.
        Parameters:
        oid - control OID
        critical - whether this control is critical
        encoded - control value
      • GenericControl

        public GenericControl​(java.lang.String oid,
                              boolean critical,
                              DERBuffer encoded)
        Creates a new generic control.
        Parameters:
        oid - control OID
        critical - whether this control is critical
        encoded - control value
    • Method Detail

      • hasValue

        public boolean hasValue()
        Description copied from interface: RequestControl
        Returns whether the control has a value associated with it.
        Specified by:
        hasValue in interface RequestControl
        Returns:
        whether the control has a value
      • hashCode

        public int hashCode()
        Description copied from class: AbstractControl
        Returns the hash code for this object.
        Specified by:
        hashCode in class AbstractControl
        Returns:
        hash code
      • encode

        public byte[] encode()
        Description copied from interface: RequestControl
        Provides the BER encoding of this control.
        Specified by:
        encode in interface RequestControl
        Returns:
        BER encoded request control
      • decode

        public void decode​(DERBuffer encoded)
        Description copied from interface: ResponseControl
        Initializes this response control with the supplied BER encoded data.
        Specified by:
        decode in interface ResponseControl
        Parameters:
        encoded - BER encoded response control