public static class JOSEMatcher.Builder extends Object
Example usage:
JOSEMatcher matcher = new JOSEMatcher().keyID("123").build();
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JOSEMatcher.Builder |
algorithm(Algorithm alg)
Sets a single JOSE algorithm to match.
|
JOSEMatcher.Builder |
algorithms(Algorithm... algs)
Sets multiple JOSE algorithms to match.
|
JOSEMatcher.Builder |
algorithms(Set<Algorithm> algs)
Sets multiple JOSE algorithms to match.
|
JOSEMatcher |
build()
Builds a new JOSE matcher.
|
JOSEMatcher.Builder |
encryptionMethod(EncryptionMethod enc)
Sets a single JOSE encryption method to match.
|
JOSEMatcher.Builder |
encryptionMethods(EncryptionMethod... encs)
Sets multiple JOSE encryption methods to match.
|
JOSEMatcher.Builder |
encryptionMethods(Set<EncryptionMethod> encs)
Sets multiple JOSE encryption methods to match.
|
JOSEMatcher.Builder |
joseClass(Class<? extends JOSEObject> clazz)
Sets a single JOSE class to match.
|
JOSEMatcher.Builder |
joseClasses(Class<? extends JOSEObject>... classes)
Sets multiple JOSE classes to match.
|
JOSEMatcher.Builder |
joseClasses(Set<Class<? extends JOSEObject>> classes)
Sets multiple JOSE classes to match.
|
JOSEMatcher.Builder |
jwkURL(URI jku)
Sets a single JWK URL to match.
|
JOSEMatcher.Builder |
jwkURLs(Set<URI> jkus)
Sets multiple JWK URLs to match.
|
JOSEMatcher.Builder |
jwkURLs(URI... jkus)
Sets multiple JWK URLs to match.
|
JOSEMatcher.Builder |
keyID(String kid)
Sets a single key ID to match.
|
JOSEMatcher.Builder |
keyIDs(Set<String> kids)
Sets multiple key IDs to match.
|
JOSEMatcher.Builder |
keyIDs(String... ids)
Sets multiple key IDs to match.
|
public Builder()
public JOSEMatcher.Builder joseClass(Class<? extends JOSEObject> clazz)
clazz
- The JOSE class to match, null
if not
specified.public JOSEMatcher.Builder joseClasses(Class<? extends JOSEObject>... classes)
classes
- The JOSE classes to match.public JOSEMatcher.Builder joseClasses(Set<Class<? extends JOSEObject>> classes)
classes
- The JOSE classes to match, null
if
not specified.public JOSEMatcher.Builder algorithm(Algorithm alg)
alg
- The JOSE algorithm, null
if not
specified.public JOSEMatcher.Builder algorithms(Algorithm... algs)
algs
- The JOSE algorithms.public JOSEMatcher.Builder algorithms(Set<Algorithm> algs)
algs
- The JOSE algorithms, null
if not
specified.public JOSEMatcher.Builder encryptionMethod(EncryptionMethod enc)
enc
- The JOSE encryption methods, null
if not
specified.public JOSEMatcher.Builder encryptionMethods(EncryptionMethod... encs)
encs
- The JOSE encryption methods.public JOSEMatcher.Builder encryptionMethods(Set<EncryptionMethod> encs)
encs
- The JOSE encryption methods, null
if not
specified.public JOSEMatcher.Builder jwkURL(URI jku)
jku
- The JWK URL, null
if not specified.public JOSEMatcher.Builder jwkURLs(URI... jkus)
jkus
- The JWK URLs.public JOSEMatcher.Builder jwkURLs(Set<URI> jkus)
jkus
- The JWK URLs, null
if not specified.public JOSEMatcher.Builder keyID(String kid)
kid
- The key ID, null
if not specified.public JOSEMatcher.Builder keyIDs(String... ids)
ids
- The key IDs.public JOSEMatcher.Builder keyIDs(Set<String> kids)
kids
- The key IDs, null
if not specified.public JOSEMatcher build()
Copyright © 2017 Connect2id Ltd.. All rights reserved.