Enabling identity assertion with trust validation using JAAS
By enabling identity assertion with trust validation, an application can use the JAAS login configuration to perform a programmatic identity assertion.
About this task
Procedure
What to do next
MyCallbackHandler handler = new MyCallbackHandler(new MyPrincipal(“Joe”));
LoginContext lc = new LoginContext(“MyAppLoginConfig”, handler);
lc.login(); //assume successful
Subject s = lc.getSubject();
WSSubject.setRunAsSubject(s);
// From here on, the runas identity is “Joe”
![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
![[IBM i]](../images/iseries.gif)
作業主題