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 KeyUseDEFAULT_PUBLIC_KEY_USE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JWKBuilderalgorithm(String algorithm)static JWKBuildercreate()JWKec(Key key)JWKec(Key key, KeyUse keyUse)JWKBuilderkid(String kid)JWKrs256(PublicKey key)JWKrsa(Key key)JWKrsa(Key key, X509Certificate certificate)JWKrsa(Key key, List<X509Certificate> certificates)JWKrsa(Key key, List<X509Certificate> certificates, KeyUse keyUse)JWKrsa(Key key, KeyUse keyUse)
-
-
-
Field Detail
-
DEFAULT_PUBLIC_KEY_USE
public static final KeyUse DEFAULT_PUBLIC_KEY_USE
-
-
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)
-
-