Package com.nimbusds.jose.proc
Class JOSEMatcher.Builder
java.lang.Object
com.nimbusds.jose.proc.JOSEMatcher.Builder
- Enclosing class:
- JOSEMatcher
Builder for constructing JOSE matchers.
Example usage:
JOSEMatcher matcher = new JOSEMatcher().keyID("123").build();
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets a single JOSE algorithm to match.algorithms(Algorithm... algs) Sets multiple JOSE algorithms to match.algorithms(Set<Algorithm> algs) Sets multiple JOSE algorithms to match.build()Builds a new JOSE matcher.Sets a single JOSE encryption method to match.encryptionMethods(EncryptionMethod... encs) Sets multiple JOSE encryption methods to match.encryptionMethods(Set<EncryptionMethod> encs) Sets multiple JOSE encryption methods to match.joseClass(Class<? extends JOSEObject> clazz) Sets a single JOSE class to match.joseClasses(Class<? extends JOSEObject>... classes) Sets multiple JOSE classes to match.joseClasses(Set<Class<? extends JOSEObject>> classes) Sets multiple JOSE classes to match.Sets a single JWK URL to match.Sets multiple JWK URLs to match.Sets multiple JWK URLs to match.Sets a single key ID to match.Sets multiple key IDs to match.Sets multiple key IDs to match.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
joseClass
Sets a single JOSE class to match.- Parameters:
clazz- The JOSE class to match,nullif not specified.- Returns:
- This builder.
-
joseClasses
Sets multiple JOSE classes to match.- Parameters:
classes- The JOSE classes to match.- Returns:
- This builder.
-
joseClasses
Sets multiple JOSE classes to match.- Parameters:
classes- The JOSE classes to match,nullif not specified.- Returns:
- This builder.
-
algorithm
Sets a single JOSE algorithm to match.- Parameters:
alg- The JOSE algorithm,nullif not specified.- Returns:
- This builder.
-
algorithms
Sets multiple JOSE algorithms to match.- Parameters:
algs- The JOSE algorithms.- Returns:
- This builder.
-
algorithms
Sets multiple JOSE algorithms to match.- Parameters:
algs- The JOSE algorithms,nullif not specified.- Returns:
- This builder.
-
encryptionMethod
Sets a single JOSE encryption method to match.- Parameters:
enc- The JOSE encryption methods,nullif not specified.- Returns:
- This builder.
-
encryptionMethods
Sets multiple JOSE encryption methods to match.- Parameters:
encs- The JOSE encryption methods.- Returns:
- This builder.
-
encryptionMethods
Sets multiple JOSE encryption methods to match.- Parameters:
encs- The JOSE encryption methods,nullif not specified.- Returns:
- This builder.
-
jwkURL
Sets a single JWK URL to match.- Parameters:
jku- The JWK URL,nullif not specified.- Returns:
- This builder.
-
jwkURLs
Sets multiple JWK URLs to match.- Parameters:
jkus- The JWK URLs.- Returns:
- This builder.
-
jwkURLs
Sets multiple JWK URLs to match.- Parameters:
jkus- The JWK URLs,nullif not specified.- Returns:
- This builder.
-
keyID
Sets a single key ID to match.- Parameters:
kid- The key ID,nullif not specified.- Returns:
- This builder.
-
keyIDs
Sets multiple key IDs to match.- Parameters:
ids- The key IDs.- Returns:
- This builder.
-
keyIDs
Sets multiple key IDs to match.- Parameters:
kids- The key IDs,nullif not specified.- Returns:
- This builder.
-
build
Builds a new JOSE matcher.- Returns:
- The JOSE matcher.
-