| org.jasig.portal.security.provider.cas.CasConnectionContextTest
CasConnectionContextTest | public class CasConnectionContextTest extends TestCase (Code) | | JUnit testcase exercising CasConnectionContext.
|
Method Summary | |
public void | testCasSecurityContext() | public void | testGetPostData() CasConnectionContext offers a getPostData() method used which reads
a specific parameter from ChannelRuntimeData (cw_xml) and returns the
parameter name=value pair for presenting a proxy ticket to that URL. | public void | testNoCasSecurityContextPresent() Test that when no ICasSecurityContext is present,
the CasConnectionContext does not modify descriptors. | public void | testPostCasSecurityContext() When the Http request method is post,
CasConnectionContext returns the descriptor unaltered. | public void | testStaticData() The CasConnectionContext behaves slightly differently when
a particular ChannelStaticData parameter "upc_cas_service_uri" is
present. | public void | testUnauthenticatedCasSecurityContext() When an ICasSecurityContext is present but unauthenticated,
CasConnectionContext will ignore it. |
testCasSecurityContext | public void testCasSecurityContext()(Code) | | When an ICasSecurityContext is present, CasConnectionContext will
use the ICasSecurityContext as a source of proxy tickets
|
testGetPostData | public void testGetPostData()(Code) | | CasConnectionContext offers a getPostData() method used which reads
a specific parameter from ChannelRuntimeData (cw_xml) and returns the
parameter name=value pair for presenting a proxy ticket to that URL. When
that parameter is not present, it reads a parameter from ChannelStaticData.
When neither are present, it attempts to acquire a proxy ticket targetted
at the null service.
|
testNoCasSecurityContextPresent | public void testNoCasSecurityContextPresent()(Code) | | Test that when no ICasSecurityContext is present,
the CasConnectionContext does not modify descriptors.
|
testPostCasSecurityContext | public void testPostCasSecurityContext()(Code) | | When the Http request method is post,
CasConnectionContext returns the descriptor unaltered.
|
testStaticData | public void testStaticData()(Code) | | The CasConnectionContext behaves slightly differently when
a particular ChannelStaticData parameter "upc_cas_service_uri" is
present. When present,
this static parameter identifies the service, rather than
the descriptors passed at runtime, for the getDescriptor(String descriptor)
method (but not for the method that takes the ChannelRuntimeData
as an argument). This affects what service the
CasConnectionContext passes to the ICasSecurityContext for acquisition
of a proxy ticket, but it *does not* change the descriptor the
CasConnectionContext uses to compose the modified descriptor it returns.
|
testUnauthenticatedCasSecurityContext | public void testUnauthenticatedCasSecurityContext()(Code) | | When an ICasSecurityContext is present but unauthenticated,
CasConnectionContext will ignore it.
|
|
|