OMElement ksEle = keyParam.getParameterElement().getFirstElement();
if(ksEle != null){
OMElement storePasswordElement = ksEle.getFirstChildWithName(new QName("Password"));
OMElement keyPasswordElement = ksEle.getFirstChildWithName(new QName("KeyPassword"));
if(secretResolver.isTokenProtected(keyStorePassToken) && storePasswordElement != null){
String storePassword = secretResolver.resolve(keyStorePassToken);
ksEle.getFirstChildWithName(new QName("Password")).setText(storePassword );
}
if(secretResolver.isTokenProtected(keyStoreKeyPassToken) && keyPasswordElement != null){
String keyPassword = secretResolver.resolve(keyStoreKeyPassToken);