Class LocalJOSEObjectCredentialResolverTest
- java.lang.Object
-
- net.shibboleth.oidc.security.credential.impl.LocalJOSEObjectCredentialResolverTest
-
public class LocalJOSEObjectCredentialResolverTest extends Object
Tests forLocalJOSEObjectCredentialResolver.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classLocalJOSEObjectCredentialResolverTest.MockRSACriteriaFilteringCredentialResolverMock RSA credential resolver that is filterable.
-
Field Summary
Fields Modifier and Type Field Description private static StringCLIENT_SECRETprivate com.nimbusds.jose.jwk.RSAKeylocalRSAKeyThe key resolved from the local credentials source.private net.shibboleth.oidc.security.credential.impl.LocalJOSEObjectCredentialResolverresolver
-
Constructor Summary
Constructors Constructor Description LocalJOSEObjectCredentialResolverTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private com.nimbusds.jwt.JWTClaimsSetcreateClaims()private com.nimbusds.jwt.SignedJWTcreatedSignedJWT()voidsetup()voidtestSuccessful_KeyIDInJOSEHeader()voidtestSuccessful_KeyIDInJOSEHeader_And_JWK()voidtestSuccessful_NoKeyIDInJOSEHeader()voidtestSuccessful_PublicKeyInJOSEHeaderMatchesLocal()voidtestUnsuccessful_KeyIDInJOSEHeader_And_JWK_KidDoesNotMatch()voidtestUnSuccessful_KeyIDInJOSEHeaderDifferentThanLocalCred()voidtestUnsuccessful_PublicKeyInJOSEHeaderDoesNotMatchLocal()
-
-
-
Field Detail
-
CLIENT_SECRET
private static final String CLIENT_SECRET
- See Also:
- Constant Field Values
-
resolver
private net.shibboleth.oidc.security.credential.impl.LocalJOSEObjectCredentialResolver resolver
-
localRSAKey
private com.nimbusds.jose.jwk.RSAKey localRSAKey
The key resolved from the local credentials source.
-
-
Method Detail
-
createdSignedJWT
private com.nimbusds.jwt.SignedJWT createdSignedJWT() throws com.nimbusds.jose.KeyLengthException, com.nimbusds.jose.JOSEException- Throws:
com.nimbusds.jose.KeyLengthExceptioncom.nimbusds.jose.JOSEException
-
createClaims
private com.nimbusds.jwt.JWTClaimsSet createClaims()
-
testSuccessful_PublicKeyInJOSEHeaderMatchesLocal
public void testSuccessful_PublicKeyInJOSEHeaderMatchesLocal() throws Exception- Throws:
Exception
-
testUnsuccessful_PublicKeyInJOSEHeaderDoesNotMatchLocal
public void testUnsuccessful_PublicKeyInJOSEHeaderDoesNotMatchLocal() throws Exception- Throws:
Exception
-
testSuccessful_KeyIDInJOSEHeader
public void testSuccessful_KeyIDInJOSEHeader() throws Exception- Throws:
Exception
-
testSuccessful_NoKeyIDInJOSEHeader
public void testSuccessful_NoKeyIDInJOSEHeader() throws Exception- Throws:
Exception
-
testUnSuccessful_KeyIDInJOSEHeaderDifferentThanLocalCred
public void testUnSuccessful_KeyIDInJOSEHeaderDifferentThanLocalCred() throws Exception- Throws:
Exception
-
testSuccessful_KeyIDInJOSEHeader_And_JWK
public void testSuccessful_KeyIDInJOSEHeader_And_JWK() throws Exception- Throws:
Exception
-
-