Class BasicSignatureSigningParametersResolverTest
- java.lang.Object
-
- net.shibboleth.oidc.security.jose.impl.BasicSignatureSigningParametersResolverTest
-
public class BasicSignatureSigningParametersResolverTest extends Object
Tests for theBasicSignatureSigningParametersResolver.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.oidc.security.jose.impl.BasicSignatureSigningParametersResolverresolverThe resolver to test.
-
Constructor Summary
Constructors Constructor Description BasicSignatureSigningParametersResolverTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private CriteriaSetbuildCriteria(List<String> supportedSigningAlgos, List<Credential> credentials)voidsetup()voidtestResolveFail_HS512_KeySizeToSmall()voidtestResolveFail_NoSupportedAlgs()voidtestResolveSuccess_ES256()voidtestResolveSuccess_HS256()voidtestResolveSuccess_PS256()voidtestResolveSuccess_RS256()voidtestResolveSuccess_Two_ES512_ChooseCorrectCurve()Choose the correct ES signing credential when there are two to choose from and the first has the wrong curve.
-
-
-
Method Detail
-
buildCriteria
private CriteriaSet buildCriteria(List<String> supportedSigningAlgos, List<Credential> credentials) throws com.nimbusds.oauth2.sdk.ParseException
- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testResolveFail_HS512_KeySizeToSmall
public void testResolveFail_HS512_KeySizeToSmall() throws Exception- Throws:
Exception
-
testResolveSuccess_Two_ES512_ChooseCorrectCurve
public void testResolveSuccess_Two_ES512_ChooseCorrectCurve() throws ExceptionChoose the correct ES signing credential when there are two to choose from and the first has the wrong curve.- Throws:
Exception- on error.
-
-