*/
uuid = ref2Base.getURI();
if(dkcbHandler.getSession(uuid)==null){
byte[] key = handleSAML(docSig, uuid);
System.out.println("I am here :-)");
SecurityContextInfo sctInfo =
new SecurityContextInfo(
uuid,
key,
1);
dkcbHandler.addSecurtiyContext(
uuid,
sctInfo);
}
dkInfo = new DerivedKeyInfo(dkToken);
dkcbHandler.addDerivedKey(uuid, dkInfo);
}
} else if(str2Base.containsKeyIdentifier()){
Element elem = str2Base.getFirstElement();
//.getKeyIdentifier()System.out.println("KeyIdentifier :: He ehee ........");
String value = elem.getAttribute("ValueType");
if("http://docs.oasis-open.org/wss/2004/XX/oasis-2004XX-wss-saml-token-profile-1.0#SAMLAssertionID".equals(value)){
uuid = ((Text)elem.getChildNodes().item(0)).getNodeValue();
if(dkcbHandler.getSession(uuid)==null){
byte[] key = handleSAML(elem.getOwnerDocument(), uuid);
System.out.println("UUID of SAML is"+uuid);
SecurityContextInfo sctInfo = new SecurityContextInfo(uuid,key,1);
dkcbHandler.addSecurtiyContext(uuid,sctInfo);
}
dkInfo = new DerivedKeyInfo(dkToken);
dkcbHandler.addDerivedKey(uuid, dkInfo);
}