Class SecurityTokenReferenceTest


  • public class SecurityTokenReferenceTest
    extends Object
    Some tests for the SecurityTokenReference class.
    • Constructor Detail

      • SecurityTokenReferenceTest

        public SecurityTokenReferenceTest()
    • Method Detail

      • testReferenceNoURI

        @Test
        public void testReferenceNoURI()
                                throws Exception
        Test for a Reference with no URI
        Throws:
        Exception
      • testMultipleChildren

        @Test
        public void testMultipleChildren()
                                  throws Exception
        Test for a SecurityTokenReference having multiple data references
        Throws:
        Exception
      • testKeyIdentifierNoValueType

        @Test
        public void testKeyIdentifierNoValueType()
                                          throws Exception
        Test for a SecurityTokenReference having a Key Identifier with no ValueType
        Throws:
        Exception
      • testKeyIdentifierBadEncodingType

        @Test
        public void testKeyIdentifierBadEncodingType()
                                              throws Exception
        Test for a SecurityTokenReference having a Key Identifier with a bad EncodingType
        Throws:
        Exception
      • testKeyIdentifierNoEncodingType

        @Test
        public void testKeyIdentifierNoEncodingType()
                                             throws Exception
        Test for a SecurityTokenReference having a Key Identifier with no EncodingType
        Throws:
        Exception
      • testKeyIdentifierSAMLNoEncodingType

        @Test
        public void testKeyIdentifierSAMLNoEncodingType()
                                                 throws Exception
        Test for a SecurityTokenReference having a Key Identifier with no EncodingType, but it should pass as the ValueType is for a SAML Assertion.
        Throws:
        Exception
      • testEmbeddedSTRChild

        @Test
        public void testEmbeddedSTRChild()
                                  throws Exception
        Test for a SecurityTokenReference having an Embedded Child, which in turn has a SecurityTokenReference child.
        Throws:
        Exception
      • testMultipleEmbeddedChildren

        @Test
        public void testMultipleEmbeddedChildren()
                                          throws Exception
        Test for a SecurityTokenReference having an Embedded Child, which has multiple children.
        Throws:
        Exception