Class ClientInformationSignatureSigningParametersResolverTest
- java.lang.Object
-
- net.shibboleth.oidc.security.jose.impl.ClientInformationSignatureSigningParametersResolverTest
-
public class ClientInformationSignatureSigningParametersResolverTest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private static ClassPathResourceCLIENT_INFORMATION_SECRETprivate static ClassPathResourceCLIENT_INFORMATION_SECRET_512private net.shibboleth.oidc.security.jose.impl.ClientInformationSignatureSigningParametersResolverresolver
-
Constructor Summary
Constructors Constructor Description ClientInformationSignatureSigningParametersResolverTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private CriteriaSetbuildCriteria(List<String> supportedSigningAlgos, ClassPathResource resource)protected StringreadJsonFromFile(Resource location)Read a file into a string.voidsetup()voidtestResolveSuccess_ClientSecretCredential256()voidtestResolveSuccess_ClientSecretCredential256_algNotEnabled()voidtestResolveSuccess_ClientSecretCredential256_tooStrongAlg()voidtestResolveSuccess_ClientSecretCredential512()
-
-
-
Field Detail
-
CLIENT_INFORMATION_SECRET
private static final ClassPathResource CLIENT_INFORMATION_SECRET
-
CLIENT_INFORMATION_SECRET_512
private static final ClassPathResource CLIENT_INFORMATION_SECRET_512
-
resolver
private net.shibboleth.oidc.security.jose.impl.ClientInformationSignatureSigningParametersResolver resolver
-
-
Method Detail
-
readJsonFromFile
protected String readJsonFromFile(@Nonnull Resource location)
Read a file into a string.- Parameters:
location- the location of the file to read- Returns:
- the file as a string
-
buildCriteria
private CriteriaSet buildCriteria(List<String> supportedSigningAlgos, ClassPathResource resource) throws com.nimbusds.oauth2.sdk.ParseException
- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testResolveSuccess_ClientSecretCredential256
public void testResolveSuccess_ClientSecretCredential256() throws Exception- Throws:
Exception
-
testResolveSuccess_ClientSecretCredential256_tooStrongAlg
public void testResolveSuccess_ClientSecretCredential256_tooStrongAlg() throws Exception- Throws:
Exception
-
testResolveSuccess_ClientSecretCredential256_algNotEnabled
public void testResolveSuccess_ClientSecretCredential256_algNotEnabled() throws Exception- Throws:
Exception
-
-