B
- The current builder.public abstract static class JWK.Builder<B extends JWK.Builder> extends Object
Modifier and Type | Field and Description |
---|---|
protected Algorithm |
algorithm
The intended JOSE algorithm for the key, optional.
|
protected String |
keyId
The key ID, optional.
|
protected Set<KeyOperation> |
keyOperations
The key operations, optional.
|
protected KeyType |
keyType
The key type, required.
|
protected KeyUse |
use
The key use, optional.
|
protected List<String> |
x509Chain
The X.509 certificate chain, optional.
|
protected String |
x509Thumbnail
X.509 certificate thumbprint, optional.
|
protected String |
x509url
X.509 certificate URL, optional.
|
Modifier | Constructor and Description |
---|---|
protected |
Builder(KeyType keyType)
The builder constructor.
|
Modifier and Type | Method and Description |
---|---|
B |
algorithm(Algorithm algorithm)
Sets the algorithm parameter of the JWK.
|
B |
algorithm(String algorithm)
Sets the algorithm parameter of the JWK.
|
abstract JWK |
build()
Builds the JWK.
|
B |
keyId(String keyId)
Sets the keyId parameter of the JWK.
|
B |
keyOperations(Set<KeyOperation> keyOperations)
Set the key operations parameter of the JWK.
|
B |
keyUse(KeyUse use)
Set the key use parameter of the JWK.
|
B |
x509Chain(List<String> x509Chain)
Set the X509 certificates attributes.
|
B |
x509Thumbnail(String x509Thumbnail)
Gets the X509 thumbnail.
|
B |
x509Url(String x509url)
Gets the X509 URL.
|
protected KeyType keyType
protected KeyUse use
protected Set<KeyOperation> keyOperations
protected Algorithm algorithm
protected String keyId
protected String x509url
protected String x509Thumbnail
protected Builder(KeyType keyType)
keyType
- the JWK key typepublic B keyUse(KeyUse use)
use
- the JWK usepublic B keyOperations(Set<KeyOperation> keyOperations)
keyOperations
- the JWK key Operationspublic B algorithm(Algorithm algorithm)
algorithm
- the JWK algorithmpublic B algorithm(String algorithm)
algorithm
- the JWK algorithmpublic B keyId(String keyId)
keyId
- the JWK key idpublic B x509Url(String x509url)
x509url
- the x509 url for the keypublic B x509Thumbnail(String x509Thumbnail)
x509Thumbnail
- the x509 thumbnail for the keypublic B x509Chain(List<String> x509Chain)
x509Chain
- the x509 chain as a list of Base64 encoded stringspublic abstract JWK build()
Copyright © 2010-2018, ForgeRock All Rights Reserved.