Class KeyUsageProperty

    • Method Detail

      • propertyFlags

        public final KeyUsagePropertyFlags propertyFlags()

        You can specify key usage for encryption, key agreement, and signature. You can use property flags or property type but not both.

        Returns:
        You can specify key usage for encryption, key agreement, and signature. You can use property flags or property type but not both.
      • propertyTypeAsString

        public final String propertyTypeAsString()

        You can specify all key usages using property type ALL. You can use property type or property flags but not both.

        If the service returns an enum value that is not available in the current SDK version, propertyType will return KeyUsagePropertyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from propertyTypeAsString().

        Returns:
        You can specify all key usages using property type ALL. You can use property type or property flags but not both.
        See Also:
        KeyUsagePropertyType
      • 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)
      • fromPropertyFlags

        public static KeyUsageProperty fromPropertyFlags​(KeyUsagePropertyFlags propertyFlags)
        Create an instance of this class with propertyFlags() initialized to the given value.

        You can specify key usage for encryption, key agreement, and signature. You can use property flags or property type but not both.

        Parameters:
        propertyFlags - You can specify key usage for encryption, key agreement, and signature. You can use property flags or property type but not both.
      • fromPropertyFlags

        public static KeyUsageProperty fromPropertyFlags​(Consumer<KeyUsagePropertyFlags.Builder> propertyFlags)
        Create an instance of this class with propertyFlags() initialized to the given value.

        You can specify key usage for encryption, key agreement, and signature. You can use property flags or property type but not both.

        Parameters:
        propertyFlags - You can specify key usage for encryption, key agreement, and signature. You can use property flags or property type but not both.
      • fromPropertyType

        public static KeyUsageProperty fromPropertyType​(String propertyType)
        Create an instance of this class with propertyTypeAsString() initialized to the given value.

        You can specify all key usages using property type ALL. You can use property type or property flags but not both.

        Parameters:
        propertyType - You can specify all key usages using property type ALL. You can use property type or property flags but not both.
        See Also:
        KeyUsagePropertyType
      • fromPropertyType

        public static KeyUsageProperty fromPropertyType​(KeyUsagePropertyType propertyType)
        Create an instance of this class with propertyTypeAsString() initialized to the given value.

        You can specify all key usages using property type ALL. You can use property type or property flags but not both.

        Parameters:
        propertyType - You can specify all key usages using property type ALL. You can use property type or property flags but not both.
        See Also:
        KeyUsagePropertyType