Class TokenProtectionTest
- java.lang.Object
-
- org.apache.wss4j.stax.test.AbstractTestBase
-
- org.apache.wss4j.policy.stax.test.AbstractPolicyTestBase
-
- org.apache.wss4j.policy.stax.test.TokenProtectionTest
-
public class TokenProtectionTest extends AbstractPolicyTestBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.wss4j.stax.test.AbstractTestBase
AbstractTestBase.TestSecurityEventListener
-
-
Field Summary
-
Fields inherited from class org.apache.wss4j.stax.test.AbstractTestBase
documentBuilderFactory, SECURED_DOCUMENT, TRANSFORMER_FACTORY, xmlInputFactory
-
-
Constructor Summary
Constructors Constructor Description TokenProtectionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testPolicy()
void
testPolicyElementNotSigned()
void
testPolicyElementSignedByOtherSignature()
void
testPolicyElementSignedByOtherSignatureReverseSecurityEventOrder()
void
testPolicyEndorsingTokenNotSigningMainSignatureToken()
void
testPolicyMainSignatureNotSigningEndorsingSignatureTokens()
void
testPolicyNoTokenProtection()
void
testPolicySymmetricBindingProtectAllToken()
void
testPolicySymmetricBindingProtectRootToken()
void
testPolicySymmetricBindingProtectSignatureToken()
-
Methods inherited from class org.apache.wss4j.policy.stax.test.AbstractPolicyTestBase
buildAndStartPolicyEngine, buildAndStartPolicyEngine, buildAndStartPolicyEngine, createSamlAssertionWrapper, getDsaKeyValueSecurityToken, getECKeyValueSecurityToken, getHttpsSecurityToken, getKerberosServiceSecurityToken, getRsaKeyValueSecurityToken, getX509Token, getX509Token, loadResourceAsString, setUp
-
Methods inherited from class org.apache.wss4j.stax.test.AbstractTestBase
doInboundSecurity, doInboundSecurity, doInboundSecurity, doInboundSecurity, doInboundSecurity, doInboundSecurity, doInboundSecurityWithWSS4J, doInboundSecurityWithWSS4J_1, doInboundSecurityWithWSS4J_1, doOutboundSecurity, doOutboundSecurity, doOutboundSecurityWithWSS4J, doOutboundSecurityWithWSS4J_1, getJavaSpecificationVersion, getMessageContext, getXPath
-
-
-
-
Method Detail
-
testPolicyNoTokenProtection
@Test public void testPolicyNoTokenProtection() throws Exception
- Throws:
Exception
-
testPolicyElementNotSigned
@Test public void testPolicyElementNotSigned() throws Exception
- Throws:
Exception
-
testPolicyElementSignedByOtherSignature
@Test public void testPolicyElementSignedByOtherSignature() throws Exception
- Throws:
Exception
-
testPolicyElementSignedByOtherSignatureReverseSecurityEventOrder
@Test public void testPolicyElementSignedByOtherSignatureReverseSecurityEventOrder() throws Exception
- Throws:
Exception
-
testPolicyEndorsingTokenNotSigningMainSignatureToken
@Test public void testPolicyEndorsingTokenNotSigningMainSignatureToken() throws Exception
- Throws:
Exception
-
testPolicyMainSignatureNotSigningEndorsingSignatureTokens
@Test public void testPolicyMainSignatureNotSigningEndorsingSignatureTokens() throws Exception
- Throws:
Exception
-
testPolicySymmetricBindingProtectSignatureToken
@Test public void testPolicySymmetricBindingProtectSignatureToken() throws Exception
- Throws:
Exception
-
testPolicySymmetricBindingProtectRootToken
@Test public void testPolicySymmetricBindingProtectRootToken() throws Exception
- Throws:
Exception
-
-