| Modifier and Type | Method and Description |
|---|---|
T |
addOperation(String operation)
Add intended operation of this JWK.
|
T |
algorithm(String algorithm)
Algorithm of the key being built.
|
JwkOctet |
build()
Build a new
JwkOctet instance from this builder. |
JwkOctet.Builder |
fromJson(JsonObject json)
Update this builder from JWK in json format.
|
T |
keyId(String keyId)
Key id of the key being built.
|
T |
keyType(String keyType)
Key type of the key being built.
|
T |
operations(List<String> operations)
Intended operations of this JWK.
|
T |
usage(String usage)
Intended usage of this JWK.
|
public JwkOctet.Builder fromJson(JsonObject json)
json - JsonObject with the JWKbuild() to build the JwkOctet instanceas a shortcut if no additional configuration is to be donepublic T keyType(String keyType)
keyType - one of supported key typesJwk.KEY_TYPE_EC,
Jwk.KEY_TYPE_RSA,
Jwk.KEY_TYPE_OCTpublic T keyId(String keyId)
JwkKeys this must be unique.keyId - key id to map from a signed entity (such as JWT) to JWK definitionpublic T algorithm(String algorithm)
public T usage(String usage)
operations or neither (never both).usage - usage of this JWKJwk.USE_ENCRYPTION,
Jwk.USE_SIGNATUREpublic T operations(List<String> operations)
usage or neither (never both).operations - operations to use, replaces existing operationsCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.