|
|
@ -69,7 +69,8 @@ public class CertificateEnrollmentServiceImpl implements CertificateEnrollmentSe
|
|
|
|
String wapProvisioningXmlFile;
|
|
|
|
String wapProvisioningXmlFile;
|
|
|
|
DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
|
|
|
|
DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
|
|
|
|
|
|
|
|
|
|
|
|
@Override public void RequestSecurityToken(String TokenType, String RequestType,
|
|
|
|
//@Override
|
|
|
|
|
|
|
|
public void RequestSecurityToken(String TokenType, String RequestType,
|
|
|
|
String BinarySecurityToken,
|
|
|
|
String BinarySecurityToken,
|
|
|
|
AdditionalContext AdditionalContext,
|
|
|
|
AdditionalContext AdditionalContext,
|
|
|
|
Holder<RequestSecurityTokenResponse> response) {
|
|
|
|
Holder<RequestSecurityTokenResponse> response) {
|
|
|
@ -109,18 +110,20 @@ public class CertificateEnrollmentServiceImpl implements CertificateEnrollmentSe
|
|
|
|
|
|
|
|
|
|
|
|
NodeList wapParm = dDoc.getElementsByTagName("parm");
|
|
|
|
NodeList wapParm = dDoc.getElementsByTagName("parm");
|
|
|
|
/////////
|
|
|
|
/////////
|
|
|
|
wapParm.item(0).getParentNode().getAttributes().getNamedItem("type").setTextContent(String.valueOf(
|
|
|
|
/* wapParm.item(0).getParentNode().getAttributes().getNamedItem("type").setTextContent(String.valueOf(
|
|
|
|
DigestUtils.sha1Hex(rooCACertificate.getEncoded())));
|
|
|
|
DigestUtils.sha1Hex(rooCACertificate.getEncoded())));
|
|
|
|
/////////
|
|
|
|
*/ /////////
|
|
|
|
NamedNodeMap rootCertAttributes = wapParm.item(0).getAttributes();
|
|
|
|
NamedNodeMap rootCertAttributes = wapParm.item(0).getAttributes();
|
|
|
|
Node b64Encoded = rootCertAttributes.getNamedItem("value");
|
|
|
|
Node b64Encoded = rootCertAttributes.getNamedItem("value");
|
|
|
|
rootCertEncodedString=rootCertEncodedString.replaceAll("\n","");
|
|
|
|
rootCertEncodedString=rootCertEncodedString.replaceAll("\n","");
|
|
|
|
b64Encoded.setTextContent(rootCertEncodedString);
|
|
|
|
b64Encoded.setTextContent(rootCertEncodedString);
|
|
|
|
System.out.println("COPY_ROOT_CERT:"+rootCertEncodedString);
|
|
|
|
System.out.println("COPY_ROOT_CERT:"+rootCertEncodedString);
|
|
|
|
|
|
|
|
|
|
|
|
/////////
|
|
|
|
/////////
|
|
|
|
wapParm.item(1).getParentNode().getAttributes().getNamedItem("type").setTextContent(String.valueOf(DigestUtils.sha1Hex(signedCert.getEncoded())));
|
|
|
|
/////////
|
|
|
|
/////////
|
|
|
|
/*
|
|
|
|
|
|
|
|
wapParm.item(1).getParentNode().getAttributes().getNamedItem("type").setTextContent(String.valueOf(DigestUtils.sha1Hex(signedCert.getEncoded())));
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|