Class KeyUsageFlags

    • Method Detail

      • dataEncipherment

        public final Boolean dataEncipherment()

        DataEncipherment is asserted when the subject public key is used for directly enciphering raw user data without the use of an intermediate symmetric cipher.

        Returns:
        DataEncipherment is asserted when the subject public key is used for directly enciphering raw user data without the use of an intermediate symmetric cipher.
      • digitalSignature

        public final Boolean digitalSignature()

        The digitalSignature is asserted when the subject public key is used for verifying digital signatures.

        Returns:
        The digitalSignature is asserted when the subject public key is used for verifying digital signatures.
      • keyAgreement

        public final Boolean keyAgreement()

        KeyAgreement is asserted when the subject public key is used for key agreement.

        Returns:
        KeyAgreement is asserted when the subject public key is used for key agreement.
      • keyEncipherment

        public final Boolean keyEncipherment()

        KeyEncipherment is asserted when the subject public key is used for enciphering private or secret keys, i.e., for key transport.

        Returns:
        KeyEncipherment is asserted when the subject public key is used for enciphering private or secret keys, i.e., for key transport.
      • nonRepudiation

        public final Boolean nonRepudiation()

        NonRepudiation is asserted when the subject public key is used to verify digital signatures.

        Returns:
        NonRepudiation is asserted when the subject public key is used to verify digital signatures.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)