public class JOSEMatcher extends java.lang.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(java.util.Set<java.lang.Class<? extends JOSEObject>> classes,
java.util.Set<Algorithm> algs,
java.util.Set<EncryptionMethod> encs,
java.util.Set<java.net.URI> jkus,
java.util.Set<java.lang.String> kids)
Creates a new JOSE matcher.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Algorithm> |
getAlgorithms()
Returns the JOSE algorithms to match.
|
java.util.Set<EncryptionMethod> |
getEncryptionMethods()
Returns the JOSE encryption methods to match.
|
java.util.Set<java.lang.Class<? extends JOSEObject>> |
getJOSEClasses()
Returns the JOSE classes to match.
|
java.util.Set<java.net.URI> |
getJWKURLs()
Returns the JWK URLs to match.
|
java.util.Set<java.lang.String> |
getKeyIDs()
Returns the key IDs to match.
|
boolean |
matches(JOSEObject joseObject)
Returns
true if the specified JOSE object matches. |
public JOSEMatcher(java.util.Set<java.lang.Class<? extends JOSEObject>> classes, java.util.Set<Algorithm> algs, java.util.Set<EncryptionMethod> encs, java.util.Set<java.net.URI> jkus, java.util.Set<java.lang.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 java.util.Set<java.lang.Class<? extends JOSEObject>> getJOSEClasses()
null
if not specified.public java.util.Set<Algorithm> getAlgorithms()
null
if not specified.public java.util.Set<EncryptionMethod> getEncryptionMethods()
null
if not specified.public java.util.Set<java.net.URI> getJWKURLs()
null
if not specified.public java.util.Set<java.lang.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 © 2015 Connect2id Ltd.. All Rights Reserved.