Class ClientInformationJWTTrustEngineTest
- java.lang.Object
-
- net.shibboleth.oidc.security.impl.ClientInformationJWTTrustEngineTest
-
public class ClientInformationJWTTrustEngineTest extends Object
Tests for theClientInformationJWTTrustEngine.
-
-
Field Summary
Fields Modifier and Type Field Description private static StringCLIENT_SECRETThe client_secret.private net.shibboleth.oidc.security.impl.ClientInformationJWTTrustEngineengineprivate com.nimbusds.jose.jwk.ECKeykey
-
Constructor Summary
Constructors Constructor Description ClientInformationJWTTrustEngineTest()
-
Method Summary
-
-
-
Field Detail
-
engine
private net.shibboleth.oidc.security.impl.ClientInformationJWTTrustEngine engine
-
key
private com.nimbusds.jose.jwk.ECKey key
-
CLIENT_SECRET
private static final String CLIENT_SECRET
The client_secret.- See Also:
- Constant Field Values
-
-
Method Detail
-
setup
@BeforeMethod public void setup() throws com.nimbusds.jose.JOSEException- Throws:
com.nimbusds.jose.JOSEException
-
setup
public void setup(String defaultAlgValue) throws com.nimbusds.jose.JOSEException
- Throws:
com.nimbusds.jose.JOSEException
-
setup
public void setup(String defaultAlgValue, Function<com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation,String> sigAlgLookup) throws com.nimbusds.jose.JOSEException
- Throws:
com.nimbusds.jose.JOSEException
-
setupSymmetric
public void setupSymmetric(String defaultAlgValue, Function<com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation,String> sigAlgLookup)
-
testValid_WithTrustedCredential_NoValueNorDefault
public void testValid_WithTrustedCredential_NoValueNorDefault() throws com.nimbusds.jose.JOSEException, SecurityException- Throws:
com.nimbusds.jose.JOSEExceptionSecurityException
-
testValid_WithTrustedCredential_NoValueDefaultMatch
public void testValid_WithTrustedCredential_NoValueDefaultMatch() throws com.nimbusds.jose.JOSEException, SecurityException- Throws:
com.nimbusds.jose.JOSEExceptionSecurityException
-
testValid_WithTrustedCredential_NoValueDefaultNotMatching
public void testValid_WithTrustedCredential_NoValueDefaultNotMatching() throws com.nimbusds.jose.JOSEException, SecurityException- Throws:
com.nimbusds.jose.JOSEExceptionSecurityException
-
testValid_WithTrustedCredential_ValueMatch
public void testValid_WithTrustedCredential_ValueMatch() throws com.nimbusds.jose.JOSEException, SecurityException- Throws:
com.nimbusds.jose.JOSEExceptionSecurityException
-
testValid_WithTrustedCredential_ValueNotMatching
public void testValid_WithTrustedCredential_ValueNotMatching() throws com.nimbusds.jose.JOSEException, SecurityException- Throws:
com.nimbusds.jose.JOSEExceptionSecurityException
-
testValid_WithSymmetricKeyCredential_NoValueNorDefault
public void testValid_WithSymmetricKeyCredential_NoValueNorDefault() throws com.nimbusds.jose.JOSEException, SecurityException- Throws:
com.nimbusds.jose.JOSEExceptionSecurityException
-
testValid_WithSymmetricKeyCredential_NoValueDefaultMatching
public void testValid_WithSymmetricKeyCredential_NoValueDefaultMatching() throws com.nimbusds.jose.JOSEException, SecurityException- Throws:
com.nimbusds.jose.JOSEExceptionSecurityException
-
testValid_WithSymmetricKeyCredential_NoValueDefaultNotMatching
public void testValid_WithSymmetricKeyCredential_NoValueDefaultNotMatching() throws com.nimbusds.jose.JOSEException, SecurityException- Throws:
com.nimbusds.jose.JOSEExceptionSecurityException
-
testValid_WithSymmetricKeyCredential_ValueMatch
public void testValid_WithSymmetricKeyCredential_ValueMatch() throws com.nimbusds.jose.JOSEException, SecurityException- Throws:
com.nimbusds.jose.JOSEExceptionSecurityException
-
testValid_WithSymmetricKeyCredential_ValueNotNatching
public void testValid_WithSymmetricKeyCredential_ValueNotNatching() throws com.nimbusds.jose.JOSEException, SecurityException- Throws:
com.nimbusds.jose.JOSEExceptionSecurityException
-
testValid_WithInlineJWK
public void testValid_WithInlineJWK() throws com.nimbusds.jose.JOSEException, SecurityException- Throws:
com.nimbusds.jose.JOSEExceptionSecurityException
-
buildClientInformationCriterion
protected static net.shibboleth.oidc.security.jose.criterion.ClientInformationCriterion buildClientInformationCriterion()
-
-