Hello,
I'd like to know how can I preserve in a token released from one STS the
IssuerAddress, so that I'm able to retrieve it on another machine and check
it.
I'm using the following logic and working with an already generated token
saved into a string and converted into a Node:
NamedNodeMap attributes = assertion.getAttributes();
String assertionId =
attributes.getNamedItem("ID").getNodeValue();
NamedNodeMap subjectConfirmationAttributes =
subjectConfirmationData.getAttributes();
String created =
subjectConfirmationAttributes.getNamedItem("NotBefore").getNodeValue();
String expires =
subjectConfirmationAttributes.getNamedItem("NotOnOrAfter").getNodeValue();
Token token = new Token(assertionId, stringToDate(created),
stringToDate(expires));
String tokenString = xmlToString(assertion);
OMElement tokenElement = stringToOM(tokenString);
token.setToken(tokenElement);
token.getIssuerAddress();
But the address returned Is null. Is it probably because in the new Token
creation I'm overwriting something?
How can I avoid this issue?!
Thanks
--
Francesco Stampacchia
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev