Package org.keycloak.jose.jwk
Class JWKBuilder
- java.lang.Object
-
- org.keycloak.jose.jwk.JWKBuilder
-
public class JWKBuilder extends Object
- Author:
- Stian Thorgersen
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_PUBLIC_KEY_USE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JWKBuilder
algorithm(String algorithm)
static JWKBuilder
create()
JWK
ec(Key key)
JWKBuilder
kid(String kid)
JWK
rs256(PublicKey key)
JWK
rsa(Key key)
JWK
rsa(Key key, X509Certificate certificate)
JWK
rsa(Key key, List<X509Certificate> certificates)
JWK
rsa(Key key, List<X509Certificate> certificates, KeyUse keyUse)
JWK
rsa(Key key, KeyUse keyUse)
-
-
-
Field Detail
-
DEFAULT_PUBLIC_KEY_USE
public static final String DEFAULT_PUBLIC_KEY_USE
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static JWKBuilder create()
-
kid
public JWKBuilder kid(String kid)
-
algorithm
public JWKBuilder algorithm(String algorithm)
-
rsa
public JWK rsa(Key key, X509Certificate certificate)
-
rsa
public JWK rsa(Key key, List<X509Certificate> certificates)
-
rsa
public JWK rsa(Key key, List<X509Certificate> certificates, KeyUse keyUse)
-
-