Class JwkOctet.Builder

    • Method Detail

      • keyId

        public T keyId​(String keyId)
        Key id of the key being built. Note that within one set of keys JwkKeys this must be unique.
        Parameters:
        keyId - key id to map from a signed entity (such as JWT) to JWK definition
        Returns:
        updated builder instance
      • algorithm

        public T algorithm​(String algorithm)
        Algorithm of the key being built. Algorithm is optional (each type may have a reasonable default).
        Parameters:
        algorithm - see each key type for supported algorithms
        Returns:
        updated builder instance
        See Also:
        JwkEC, JwkOctet, JwkRSA
      • usage

        public T usage​(String usage)
        Intended usage of this JWK. You may configure usage, operations or neither (never both).
        Parameters:
        usage - usage of this JWK
        Returns:
        updated builder instance
        See Also:
        Jwk.USE_ENCRYPTION, Jwk.USE_SIGNATURE
      • operations

        public T operations​(List<String> operations)
        Intended operations of this JWK. You may configure operations, usage or neither (never both).
        Parameters:
        operations - operations to use, replaces existing operations
        Returns:
        updated builder instance
      • addOperation

        public T addOperation​(String operation)
        Add intended operation of this JWK. You may configure operations, usage or neither (never both).
        Parameters:
        operation - operation to add to list of operations
        Returns:
        updated builder instance