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