public class JOSEMatcher extends Object
Supported matching criteria:
Matching by X.509 certificate URL, thumbprint and chain is not supported.
Modifier and Type | Class and Description |
---|---|
static class |
JOSEMatcher.Builder
Builder for constructing JOSE matchers.
|
Constructor and Description |
---|
JOSEMatcher(Set<Class<? extends JOSEObject>> classes,
Set<Algorithm> algs,
Set<EncryptionMethod> encs,
Set<URI> jkus,
Set<String> kids)
Creates a new JOSE matcher.
|
Modifier and Type | Method and Description |
---|---|
Set<Algorithm> |
getAlgorithms()
Returns the JOSE algorithms to match.
|
Set<EncryptionMethod> |
getEncryptionMethods()
Returns the JOSE encryption methods to match.
|
Set<Class<? extends JOSEObject>> |
getJOSEClasses()
Returns the JOSE classes to match.
|
Set<URI> |
getJWKURLs()
Returns the JWK URLs to match.
|
Set<String> |
getKeyIDs()
Returns the key IDs to match.
|
boolean |
matches(JOSEObject joseObject)
Returns
true if the specified JOSE object matches. |
public JOSEMatcher(Set<Class<? extends JOSEObject>> classes, Set<Algorithm> algs, Set<EncryptionMethod> encs, Set<URI> jkus, Set<String> kids)
classes
- The JOSE classes to match, null
if not
specified.algs
- The JOSE algorithms to match, null
if not
specified.encs
- The JOSE encryption methods to match, null
if
not specified.jkus
- The JWK URLs to match, null
if not specified.kids
- The key IDs to match, null
if not specified.public Set<Class<? extends JOSEObject>> getJOSEClasses()
null
if not specified.public Set<Algorithm> getAlgorithms()
null
if not specified.public Set<EncryptionMethod> getEncryptionMethods()
null
if not specified.public Set<URI> getJWKURLs()
null
if not specified.public Set<String> getKeyIDs()
null
if not specified.public boolean matches(JOSEObject joseObject)
true
if the specified JOSE object matches.joseObject
- The JOSE object. Must not be null
.true
if the JOSE object matches, else false
.Copyright © 2018 Connect2id Ltd.. All rights reserved.