Class SignJWTHandlerTest
- java.lang.Object
-
- net.shibboleth.oidc.security.impl.AbstractHandlerTest
-
- net.shibboleth.oidc.security.impl.SignJWTHandlerTest
-
public class SignJWTHandlerTest extends AbstractHandlerTest
Tests for the SignJWT message handler.Note, These tests sign a RequestObject.
-
-
Field Summary
Fields Modifier and Type Field Description private static StringCLIENT_SECRETA client_secret to use.private net.shibboleth.oidc.profile.core.OIDCAuthenticationRequestrequestThe authn request.private net.shibboleth.oidc.security.impl.SignJWTHandlersignerThe signer to test.-
Fields inherited from class net.shibboleth.oidc.security.impl.AbstractHandlerTest
ac, prc, rootPrc, src
-
-
Constructor Summary
Constructors Constructor Description SignJWTHandlerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()Setup the various contexts.voidtestSignES256_Success()voidtestSignHMAC_Success()voidtestSignHMAC_WrongCredentialType()voidtestSignPS256_Success()voidtestSignRS256_Success()
-
-
-
Field Detail
-
CLIENT_SECRET
@Nonnull private static final String CLIENT_SECRET
A client_secret to use.- See Also:
- Constant Field Values
-
signer
private net.shibboleth.oidc.security.impl.SignJWTHandler signer
The signer to test.
-
request
private net.shibboleth.oidc.profile.core.OIDCAuthenticationRequest request
The authn request.
-
-
Method Detail
-
setup
@BeforeMethod public void setup() throws ExceptionDescription copied from class:AbstractHandlerTestSetup the various contexts.- Overrides:
setupin classAbstractHandlerTest- Throws:
Exception- on error
-
testSignHMAC_WrongCredentialType
public void testSignHMAC_WrongCredentialType() throws Exception- Throws:
Exception
-
-