private Element createKeyValue() throws Exception {
  Element keyValueEle=null;
  PrivateKey key=idmClient.getTenantPrivateKey(tenantName);
  if (key != null) {
    RSAPrivateKey rsaKey=(RSAPrivateKey)key;
    Element rsaKeyEle=createRSAKeyValue(rsaKey);
    if (rsaKeyEle != null) {
      keyValueEle=doc.createElement(SAMLNames.DS_KEYVALUE);
      keyValueEle.appendChild(rsaKeyEle);
    }
  }
  return keyValueEle;
}

private Element createKeyValue ( ) throws Exception { Element keyValueEle = null ; PrivateKey key = idmClient . getTenantPrivateKey ( tenantName ) ; if ( key != null ) { RSAPrivateKey rsaKey = ( RSAPrivateKey ) key ; Element rsaKeyEle = createRSAKeyValue ( rsaKey ) ; if ( rsaKeyEle != null ) { keyValueEle = doc . createElement ( SAMLNames . DS_KEYVALUE ) ; keyValueEle . appendChild ( rsaKeyEle ) ; } } return keyValueEle ; }
return a ds : keyvalue element in dom . keyvalue | - - - - - rsakeyvalue
