SCS-CBU-CED-IAM / AIS

Swisscom All-in Signing Service: Sample Scripts
Apache License 2.0
9 stars 7 forks source link

iText CertificateRequest Profile #7

Closed phaupt closed 10 years ago

phaupt commented 10 years ago

Soap.java contains a constant with a URN that is not used:

_CERTIFICATE_REQUEST_PROFILE = "urn:swisscom:advanced";

Actually, there's a check to add a 'Profile' attribute to the OnDemand's CertificateRequest-Element:

if (!_CERTIFICATE_REQUEST_PROFILE.equals(certRequestProfile)) {
                    certificateRequestElement.addAttribute(new QName("Profile"), certRequestProfile);
                }

I haven't found any case in the source code where the 'certRequestProfile' value is set to something different than '_CERTIFICATE_REQUEST_PROFILE'. So it's... a) dead code b) we don't support a 'Profile'-attribute to the OnDemand's CertificateRequest-Element