public class KeyGeneratorService extends Object
| Constructor and Description |
|---|
KeyGeneratorService(OxdServerConfiguration configuration,
PersistenceService persistenceService) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteKeysFromStorage() |
void |
generateKeys() |
org.gluu.oxauth.model.crypto.AbstractCryptoProvider |
getCryptoProvider() |
String |
getKeyId(org.gluu.oxauth.model.jwk.Algorithm algorithm,
org.gluu.oxauth.model.jwk.Use use) |
org.gluu.oxauth.model.jwk.JSONWebKeySet |
getKeys() |
org.gluu.oxauth.model.jwk.JSONWebKeySet |
getKeysFromStorage() |
boolean |
hasKeysExpired(ExpiredObject expiredObject) |
void |
saveKeysInStorage(String jwks) |
void |
setKeys(org.gluu.oxauth.model.jwk.JSONWebKeySet keys) |
org.gluu.oxauth.model.jwt.Jwt |
sign(org.gluu.oxauth.model.jwt.Jwt jwt,
String sharedSecret,
org.gluu.oxauth.model.crypto.signature.SignatureAlgorithm signatureAlgorithm) |
@Inject public KeyGeneratorService(OxdServerConfiguration configuration, PersistenceService persistenceService)
public void generateKeys()
public org.gluu.oxauth.model.jwt.Jwt sign(org.gluu.oxauth.model.jwt.Jwt jwt,
String sharedSecret,
org.gluu.oxauth.model.crypto.signature.SignatureAlgorithm signatureAlgorithm)
public org.gluu.oxauth.model.jwk.JSONWebKeySet getKeys()
public void setKeys(org.gluu.oxauth.model.jwk.JSONWebKeySet keys)
public String getKeyId(org.gluu.oxauth.model.jwk.Algorithm algorithm, org.gluu.oxauth.model.jwk.Use use) throws Exception
Exceptionpublic void saveKeysInStorage(String jwks)
public org.gluu.oxauth.model.jwk.JSONWebKeySet getKeysFromStorage()
public void deleteKeysFromStorage()
public boolean hasKeysExpired(ExpiredObject expiredObject)
public org.gluu.oxauth.model.crypto.AbstractCryptoProvider getCryptoProvider()
Copyright © 2021. All rights reserved.