case SecurityProcessorContext.START:
if (!initializedUsernameToken) {
try {
initializeUsernameToken(spt);
UsernameToken unt = (UsernameToken)spc.readCurrentPolicyEngineData();
//Get the includeToken attr info
String includetokenUri = spc.getAssertion().getAttribute(
new QName(Constants.SP_NS,
Constants.ATTR_INCLUDE_TOKEN));
try {
if(includetokenUri != null) { //since its optional
unt.setInclusion(includetokenUri);
}
((TokenWrapper)spc.readPreviousPolicyEngineData()).setToken(unt);
} catch (WSSPolicyException e) {
log.error(e.getMessage(), e);
return new Boolean(false);