use of org.apereo.cas.configuration.model.support.oidc.OidcProperties in project cas by apereo.
the class OidcDefaultJsonWebKeystoreGeneratorServiceTests method verifyCurve256.
@Test
public void verifyCurve256() throws Exception {
val properties = new OidcProperties();
properties.getJwks().getCore().setJwksType("ec");
properties.getJwks().getCore().setJwksKeySize(256);
val service = new OidcDefaultJsonWebKeystoreGeneratorService(properties, applicationContext);
service.generate(new FileSystemResource(KEYSTORE));
assertTrue(KEYSTORE.exists());
service.destroy();
}
use of org.apereo.cas.configuration.model.support.oidc.OidcProperties in project cas by apereo.
the class OidcDefaultJsonWebKeystoreGeneratorServiceTests method verifyCurve384.
@Test
public void verifyCurve384() throws Exception {
val properties = new OidcProperties();
properties.getJwks().getCore().setJwksType("ec");
properties.getJwks().getCore().setJwksKeySize(384);
val service = new OidcDefaultJsonWebKeystoreGeneratorService(properties, applicationContext);
service.generate(new FileSystemResource(KEYSTORE));
assertTrue(KEYSTORE.exists());
}
use of org.apereo.cas.configuration.model.support.oidc.OidcProperties in project cas by apereo.
the class OidcDefaultJsonWebKeystoreGeneratorServiceTests method verifyCurve521.
@Test
public void verifyCurve521() throws Exception {
val properties = new OidcProperties();
properties.getJwks().getCore().setJwksType("ec");
properties.getJwks().getCore().setJwksKeySize(521);
val service = new OidcDefaultJsonWebKeystoreGeneratorService(properties, applicationContext);
service.generate(new FileSystemResource(KEYSTORE));
assertTrue(KEYSTORE.exists());
service.destroy();
}
Aggregations