org.apache.ws.security.misc
Class PrincipalTest

java.lang.Object
  extended by org.junit.Assert
      extended by org.apache.ws.security.misc.PrincipalTest

public class PrincipalTest
extends org.junit.Assert

Test various principal objects after processing a security token.


Constructor Summary
PrincipalTest()
           
 
Method Summary
 void testBinarySecurityToken()
          Test the principal that is created after processing (and explicitly validating) a BinarySecurityToken.
 void testSAML2Token()
          Test the principal that is created after processing a SAML2 Token
 void testSAMLToken()
          Test the principal that is created after processing a SAML Token
 void testTransformedSAMLToken()
          Test the principal that is created after processing a SAML Token, which has been transformed into another SAML Token.
 void testTransformedUsernameToken()
          Test the principal that is created after processing a Username Token, which has been transformed into a SAML Assertion.
 void testUsernameToken()
          Test the principal that is created after processing a Username Token
 
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrincipalTest

public PrincipalTest()
Method Detail

testUsernameToken

public void testUsernameToken()
                       throws java.lang.Exception
Test the principal that is created after processing a Username Token

Throws:
java.lang.Exception

testTransformedUsernameToken

public void testTransformedUsernameToken()
                                  throws java.lang.Exception
Test the principal that is created after processing a Username Token, which has been transformed into a SAML Assertion.

Throws:
java.lang.Exception

testSAMLToken

public void testSAMLToken()
                   throws java.lang.Exception
Test the principal that is created after processing a SAML Token

Throws:
java.lang.Exception

testSAML2Token

public void testSAML2Token()
                    throws java.lang.Exception
Test the principal that is created after processing a SAML2 Token

Throws:
java.lang.Exception

testTransformedSAMLToken

public void testTransformedSAMLToken()
                              throws java.lang.Exception
Test the principal that is created after processing a SAML Token, which has been transformed into another SAML Token.

Throws:
java.lang.Exception

testBinarySecurityToken

public void testBinarySecurityToken()
                             throws java.lang.Exception
Test the principal that is created after processing (and explicitly validating) a BinarySecurityToken.

Throws:
java.lang.Exception


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.