//Unmarshal to JAXB KeyInfo Object and set it
try {
jc = SAMLJAXBUtil.getJAXBContext();
u = jc.createUnmarshaller();
} catch ( Exception ex) {
throw new SAMLException(ex.getMessage());
}
try {
if ( keyInfo != null) {
this.setKeyInfo(((KeyInfoType)((JAXBElement)u.unmarshal(keyInfo)).getValue()));
}
} catch (Exception ex) {
// log here
throw new SAMLException(ex);
}
}