Class JWETokenDecrypterTest
- java.lang.Object
-
- net.shibboleth.oidc.security.impl.JWETokenDecrypterTest
-
public class JWETokenDecrypterTest extends Object
Tests for theJWETokenDecrypter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classJWETokenDecrypterTest.MockKeyAgreementCriteriaFilteringCredentialResolverprivate static classJWETokenDecrypterTest.MockKeyWrapCriteriaFilteringCredentialResolverprivate static classJWETokenDecrypterTest.MockRSACriteriaFilteringCredentialResolverprivate static classJWETokenDecrypterTest.MockRSAKeysCriteriaFilteringCredentialResolver
-
Field Summary
Fields Modifier and Type Field Description private static StringCLIENT_SECRETprivate net.shibboleth.oidc.security.impl.JWETokenDecrypterdecrypter
-
Constructor Summary
Constructors Constructor Description JWETokenDecrypterTest()
-
Method Summary
-
-
-
Field Detail
-
decrypter
private net.shibboleth.oidc.security.impl.JWETokenDecrypter decrypter
-
CLIENT_SECRET
private static final String CLIENT_SECRET
- See Also:
- Constant Field Values
-
-
Method Detail
-
createClaims
private com.nimbusds.jwt.JWTClaimsSet createClaims()
-
createdSignedJWT
private com.nimbusds.jwt.SignedJWT createdSignedJWT() throws com.nimbusds.jose.KeyLengthException, com.nimbusds.jose.JOSEException- Throws:
com.nimbusds.jose.KeyLengthExceptioncom.nimbusds.jose.JOSEException
-
setup
@BeforeMethod public void setup()
-
testDecryptionByKeyWrapping_Using_EvaluableCriteriaFiltering
void testDecryptionByKeyWrapping_Using_EvaluableCriteriaFiltering() throws Exception- Throws:
Exception
-
testDecryptionByKeyWrapping_WrongCredentialType
void testDecryptionByKeyWrapping_WrongCredentialType() throws Exception- Throws:
Exception
-
testDecryptionByDirectEncryption
void testDecryptionByDirectEncryption() throws Exception- Throws:
Exception
-
testDecryptionByDirectEncryption_SecretKeyIsNull
void testDecryptionByDirectEncryption_SecretKeyIsNull() throws Exception- Throws:
Exception
-
testDecryptionByDirectEncryption_Using_EvaluableCriteriaFiltering
void testDecryptionByDirectEncryption_Using_EvaluableCriteriaFiltering() throws Exception- Throws:
Exception
-
testDecryptionByDirectEncryption_AlgorithmExcluded
void testDecryptionByDirectEncryption_AlgorithmExcluded() throws Exception- Throws:
Exception
-
testDecryptionByDirectEncryption_NoSuitableKey
void testDecryptionByDirectEncryption_NoSuitableKey() throws Exception- Throws:
Exception
-
testDecryptionByKeyWrapping_WrongAlgorithm
void testDecryptionByKeyWrapping_WrongAlgorithm() throws com.nimbusds.jose.KeyLengthException, com.nimbusds.jose.JOSEException, ParseException- Throws:
com.nimbusds.jose.KeyLengthExceptioncom.nimbusds.jose.JOSEExceptionParseException
-
testDecryptionByKeyEncryption
void testDecryptionByKeyEncryption() throws Exception- Throws:
Exception
-
testDecryptionByKeyEncryption_Using_EvaluableCriteriaFiltering
void testDecryptionByKeyEncryption_Using_EvaluableCriteriaFiltering() throws Exception- Throws:
Exception
-
testDecryptionByKeyEncryption_TwoRSAKeysInCredentialSet_NoKeyIdInJOSEHeader
void testDecryptionByKeyEncryption_TwoRSAKeysInCredentialSet_NoKeyIdInJOSEHeader() throws Exception- Throws:
Exception
-
testDecryptionByKeyEncryption_TwoRSAKeysInCredentialSet_FilteredOnKeyId
void testDecryptionByKeyEncryption_TwoRSAKeysInCredentialSet_FilteredOnKeyId() throws Exception- Throws:
Exception
-
-