java.lang.Object
io.helidon.security.jwt.jwk.JwkEC.Builder
- All Implemented Interfaces:
- Builder<JwkEC.Builder,,- JwkEC> - Supplier<JwkEC>
- Enclosing class:
- JwkEC
Builder for 
JwkEC.- 
Method SummaryModifier and TypeMethodDescriptionAdd a certificate to certificate chain of the JWK to be built.addOperation(String operation) Add intended operation of this JWK.Algorithm of the key being built.build()Build a newJwkECinstance from this builder.certificateChain(List<X509Certificate> chain) Set certificate chain of the JWK to be built.fromJson(JsonObject json) Update this builder from JWK in json format.Key id of the key being built.Key type of the key being built.operations(List<String> operations) Intended operations of this JWK.privateKey(ECPrivateKey privateKey) Set the private key to be used for performing security operations requiring private key, such as signing data, encrypting/decrypting data etc.publicKey(ECPublicKey publicKey) Set the public key to be used for performing security operations requiring public key, such as signature verification, encrypting/decrypting data etc.sha1Thumbprint(byte[] thumbprint) Thumbprint (X.509 Certificate SHA-1 Thumbprint) of the DER encoding of the certificate.sha256Thumbprint(byte[] thumbprint) Thumbprint (X.509 Certificate SHA-256 Thumbprint) of the DER encoding of the certificate.Intended usage of this JWK.
- 
Method Details- 
privateKeySet the private key to be used for performing security operations requiring private key, such as signing data, encrypting/decrypting data etc.- Parameters:
- privateKey- EC private key instance
- Returns:
- updated builder instance
 
- 
publicKeySet the public key to be used for performing security operations requiring public key, such as signature verification, encrypting/decrypting data etc.- Parameters:
- publicKey- EC public key instance
- Returns:
- updated builder instance
 
- 
fromJsonUpdate this builder from JWK in json format.
- 
buildBuild a newJwkECinstance from this builder.- Specified by:
- buildin interface- Builder<JwkEC.Builder,- JwkEC> 
- Returns:
- instance of JwkECconfigured from this builder
 
- 
certificateChainSet certificate chain of the JWK to be built.- Parameters:
- chain- certificate chain, where the certificate of this JWK's public must be the first in the list
- Returns:
- updated builder instance
 
- 
addCertificateChainAdd a certificate to certificate chain of the JWK to be built.- Parameters:
- cert- certificate to add to the chain
- Returns:
- updated builder instance
 
- 
sha1ThumbprintThumbprint (X.509 Certificate SHA-1 Thumbprint) of the DER encoding of the certificate. Sometimes referred to as fingerprint.- Parameters:
- thumbprint- thumbprint bytes (raw bytes)
- Returns:
- updated builder instance
 
- 
sha256ThumbprintThumbprint (X.509 Certificate SHA-256 Thumbprint) of the DER encoding of the certificate. Sometimes referred to as fingerprint.- Parameters:
- thumbprint- thumbprint bytes (raw bytes)
- Returns:
- updated builder instance
 
- 
keyTypeKey type of the key being built.- Parameters:
- keyType- one of supported key types
- Returns:
- updated builder instance
- See Also:
 
- 
keyIdKey id of the key being built. Note that within one set of keysJwkKeysthis must be unique.- Parameters:
- keyId- key id to map from a signed entity (such as JWT) to JWK definition
- Returns:
- updated builder instance
 
- 
algorithmAlgorithm 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:
 
- 
usageIntended usage of this JWK. You may configure usage,operationsor neither (never both).- Parameters:
- usage- usage of this JWK
- Returns:
- updated builder instance
- See Also:
 
- 
operationsIntended operations of this JWK. You may configure operations,usageor neither (never both).- Parameters:
- operations- operations to use, replaces existing operations
- Returns:
- updated builder instance
 
- 
addOperationAdd intended operation of this JWK. You may configure operations,usageor neither (never both).- Parameters:
- operation- operation to add to list of operations
- Returns:
- updated builder instance
 
 
-