* @param pubKey PublicKey
* @return KeyValue
*/
@SuppressWarnings("unchecked")
protected KeyValue buildKeyValue(PublicKey pubKey) {
KeyValue kv = new KeyValue();
RSAKeyValue rsaKV = new RSAKeyValue(pubKey);
JAXBElement je = new com.sun.xml.security.core.dsig.ObjectFactory().createRSAKeyValue(rsaKV);
List strList = Collections.singletonList(je);
kv.setContent(strList);
return kv;
}