Searched refs:jweAlgorithm (Results 1 - 11 of 11) sorted by relevance

/forgerock/openam-v13/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/devices/
H A DEncryptedJwtDeviceSerialisation.java39 private final JweAlgorithm jweAlgorithm; field in class:EncryptedJwtDeviceSerialisation
41 public EncryptedJwtDeviceSerialisation(final EncryptionMethod encryptionMethod, final JweAlgorithm jweAlgorithm, argument
43 Reject.ifNull(encryptionMethod, jweAlgorithm, encryptionKeyPair);
49 this.jweAlgorithm = jweAlgorithm;
55 .headers().enc(encryptionMethod).alg(jweAlgorithm).done()
/forgerock/openam/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/devices/
H A DEncryptedJwtDeviceSerialisation.java39 private final JweAlgorithm jweAlgorithm; field in class:EncryptedJwtDeviceSerialisation
41 public EncryptedJwtDeviceSerialisation(final EncryptionMethod encryptionMethod, final JweAlgorithm jweAlgorithm, argument
43 Reject.ifNull(encryptionMethod, jweAlgorithm, encryptionKeyPair);
49 this.jweAlgorithm = jweAlgorithm;
55 .headers().enc(encryptionMethod).alg(jweAlgorithm).done()
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/sso/providers/stateless/
H A DJwtSessionMapperBuilder.java66 JweAlgorithm jweAlgorithm = null; field in class:JwtSessionMapperBuilder
243 this.jweAlgorithm = JweAlgorithm.parseAlgorithm(
273 this.jweAlgorithm = JweAlgorithm.A128KW;
276 this.jweAlgorithm = JweAlgorithm.A192KW;
279 this.jweAlgorithm = JweAlgorithm.A256KW;
305 this.jweAlgorithm = JweAlgorithm.DIRECT;
329 if (jweAlgorithm != null) {
337 Reject.ifTrue(jweAlgorithm.getAlgorithmType() == JweAlgorithmType.RSA && jwsAlgorithm == JwsAlgorithm.NONE,
H A DJwtSessionMapper.java68 final JweAlgorithm jweAlgorithm; field in class:JwtSessionMapper
88 this.jweAlgorithm = builder.jweAlgorithm;
109 if (jweAlgorithm != null) {
112 .alg(jweAlgorithm)
149 if (jweAlgorithm != null) {
/forgerock/openam/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/devices/services/
H A DEncryptedDeviceStorage.java126 encryptionScheme.jweAlgorithm,
140 private final JweAlgorithm jweAlgorithm; field in class:EncryptedDeviceStorage.SupportedEncryptionScheme
142 SupportedEncryptionScheme(final EncryptionMethod encryptionMethod, final JweAlgorithm jweAlgorithm) { argument
144 this.jweAlgorithm = jweAlgorithm;
/forgerock/openam-v13/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/devices/services/
H A DAuthenticatorOathService.java114 encryptionScheme.jweAlgorithm, getEncryptionKeyPair());
189 private final JweAlgorithm jweAlgorithm; field in class:AuthenticatorOathService.SupportedOathEncryptionScheme
191 SupportedOathEncryptionScheme(final EncryptionMethod encryptionMethod, final JweAlgorithm jweAlgorithm) { argument
193 this.jweAlgorithm = jweAlgorithm;
/forgerock/openam/openam-oauth2/src/test/java/org/forgerock/openidconnect/
H A DOpenIdConnectTokenTest.java176 for (JweAlgorithm jweAlgorithm : JweAlgorithm.values()) {
177 if (jweAlgorithm.getAlgorithmType() == JweAlgorithmType.AES_KEYWRAP) {
178 if (jweAlgorithm != JweAlgorithm.A128KW && Cipher.getMaxAllowedKeyLength("AES") < 192) {
196 results.add(new Object[] { jwsAlgorithm, jweAlgorithm, encryptionMethod });
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/sso/providers/stateless/
H A DJwtSessionMapperBuilderTest.java146 assertThat(testBuilder.jweAlgorithm).isEqualTo(JweAlgorithm.RSA_OAEP_256);
162 assertThat(testBuilder.jweAlgorithm).isEqualTo(JweAlgorithm.parseAlgorithm(paddingMode));
179 assertThat(testBuilder.jweAlgorithm).isEqualTo(JweAlgorithm.DIRECT);
192 assertThat(testBuilder.jweAlgorithm).isEqualTo(expectedAlgorithm);
H A DJwtSessionMapperConfigTest.java82 assertThat(result.jweAlgorithm).isEqualTo(JweAlgorithm.RSA_OAEP_256);
91 assertThat(result.jweAlgorithm).isEqualTo(JweAlgorithm.DIRECT);
101 assertThat(result.jweAlgorithm).isEqualTo(expectedAlgorithm);
H A DJwtSessionMapperTest.java83 public void canRoundtripSessionInfoAsSignedEncryptedJwtUsingDifferentAlgs(JweAlgorithm jweAlgorithm) argument
90 switch (jweAlgorithm.getAlgorithmType()) {
/forgerock/openam/openam-oauth2/src/test/java/org/forgerock/openam/oauth2/
H A DOpenAMClientRegistrationTest.java277 public void shouldReturnCorrectEncryptionKey(JweAlgorithm jweAlgorithm, Key key) throws Exception { argument
278 when(amIdentity.getAttribute("idTokenEncryptionAlgorithm")).thenReturn(singleton(jweAlgorithm.toString()));

Completed in 37 milliseconds