Class KeyUsage

    • Method Detail

      • digitalSignature

        public final Boolean digitalSignature()

        Key can be used for digital signing.

        Returns:
        Key can be used for digital signing.
      • nonRepudiation

        public final Boolean nonRepudiation()

        Key can be used for non-repudiation.

        Returns:
        Key can be used for non-repudiation.
      • keyEncipherment

        public final Boolean keyEncipherment()

        Key can be used to encipher data.

        Returns:
        Key can be used to encipher data.
      • dataEncipherment

        public final Boolean dataEncipherment()

        Key can be used to decipher data.

        Returns:
        Key can be used to decipher data.
      • keyAgreement

        public final Boolean keyAgreement()

        Key can be used in a key-agreement protocol.

        Returns:
        Key can be used in a key-agreement protocol.
      • keyCertSign

        public final Boolean keyCertSign()

        Key can be used to sign certificates.

        Returns:
        Key can be used to sign certificates.
      • crlSign

        public final Boolean crlSign()

        Key can be used to sign CRLs.

        Returns:
        Key can be used to sign CRLs.
      • encipherOnly

        public final Boolean encipherOnly()

        Key can be used only to encipher data.

        Returns:
        Key can be used only to encipher data.
      • decipherOnly

        public final Boolean decipherOnly()

        Key can be used only to decipher data.

        Returns:
        Key can be used only to decipher data.
      • 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)