Module io.inverno.mod.security.jose
Class NoOpJWKStore
java.lang.Object
io.inverno.mod.security.jose.internal.jwk.NoOpJWKStore
- All Implemented Interfaces:
JWKStore
A NoOp JWK store implementation.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends JWK>
reactor.core.publisher.Mono<T>Returns the key stored for the specified X.509 SHA1 thumbprint<T extends JWK>
reactor.core.publisher.Mono<T>getByJWKThumbprint(String jwkThumbprint) Returns the key stored for the specified JWK thumbprint.<T extends JWK>
reactor.core.publisher.Mono<T>getByKeyId(String kid) Returns the key stored for the specified key id.<T extends JWK>
reactor.core.publisher.Mono<T>getByX509CertificateSHA256Thumbprint(String x5t_S256) Returns the key stored for the specified X.509 SHA256 thumbprintreactor.core.publisher.Mono<Void>Removes the specified key from the store.reactor.core.publisher.Mono<Void>Stores the specified key into the store.
-
Constructor Details
-
NoOpJWKStore
public NoOpJWKStore()
-
-
Method Details
-
getByKeyId
public <T extends JWK> reactor.core.publisher.Mono<T> getByKeyId(String kid) throws JWKStoreException Description copied from interface:JWKStoreReturns the key stored for the specified key id.
- Specified by:
getByKeyIdin interfaceJWKStore- Type Parameters:
T- the expected type of the key- Parameters:
kid- a key id- Returns:
- a single key publisher or an empty publisher
- Throws:
JWKStoreException- if there was an error accessing the store
-
getBy509CertificateSHA1Thumbprint
public <T extends JWK> reactor.core.publisher.Mono<T> getBy509CertificateSHA1Thumbprint(String x5t) throws JWKStoreException Description copied from interface:JWKStoreReturns the key stored for the specified X.509 SHA1 thumbprint
- Specified by:
getBy509CertificateSHA1Thumbprintin interfaceJWKStore- Type Parameters:
T- the expected type of the key- Parameters:
x5t- an X.509 SHA1 thumbprint- Returns:
- a single key publisher or an empty publisher
- Throws:
JWKStoreException- if there was an error accessing the store
-
getByX509CertificateSHA256Thumbprint
public <T extends JWK> reactor.core.publisher.Mono<T> getByX509CertificateSHA256Thumbprint(String x5t_S256) throws JWKStoreException Description copied from interface:JWKStoreReturns the key stored for the specified X.509 SHA256 thumbprint
- Specified by:
getByX509CertificateSHA256Thumbprintin interfaceJWKStore- Type Parameters:
T- the expected type of the key- Parameters:
x5t_S256- an X.509 SHA256 thumbprint- Returns:
- a single key publisher or an empty publisher
- Throws:
JWKStoreException- if there was an error accessing the store
-
getByJWKThumbprint
public <T extends JWK> reactor.core.publisher.Mono<T> getByJWKThumbprint(String jwkThumbprint) throws JWKStoreException Description copied from interface:JWKStoreReturns the key stored for the specified JWK thumbprint.
- Specified by:
getByJWKThumbprintin interfaceJWKStore- Type Parameters:
T- the expected type of the key- Parameters:
jwkThumbprint- a JWK thumbprint- Returns:
- a single key publisher or an empty publisher
- Throws:
JWKStoreException- if there was an error accessing the store
-
set
Description copied from interface:JWKStoreStores the specified key into the store.
This method should store the key for all available identifiers: key id, X.509 SHA1 thumbprint, X.509 SHA256 thumbprint and JWK thumbprint.
- Specified by:
setin interfaceJWKStore- Parameters:
jwk- the key to store- Returns:
- a single empty publisher that completes once the key has been stored
- Throws:
JWKStoreException- if there was an error accessing the store
-
remove
Description copied from interface:JWKStoreRemoves the specified key from the store.
This method should remove the key associated to all available identifiers: key id, X.509 SHA1 thumbprint, X.509 SHA256 thumbprint and JWK thumbprint.
- Specified by:
removein interfaceJWKStore- Parameters:
jwk- the key to remove- Returns:
- a single empty publisher that completes once the key has been removed
- Throws:
JWKStoreException- if there was an error accessing the store
-