/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2014 ForgeRock AS.
*/
public class CertUtilsTest {
+ ",C=" + ISSUER_C;
private static final String SUBJECT_NAME = "E=" + SUBJECT_EMAIL + ",CN=" + SUBJECT_CN + ",C=" + SUBJECT_C
+ ",2.5.4.13=#131042723878424475366132364930453265";
= new X500Principal("cn=" + DUMMY_CN + "+uid=" + DUMMY_UID + ",dc=internal,dc=forgerock,dc=" + DUMMY_DC);
}
}
@Test
public void issuerNameIsCorrectlyRetrieved() {
}
@Test
public void subjectNameIsCorrectlyRetrieved() {
}
@Test
public void attributesAreCorrectlyRetrievedFromX500Principals() {
assertThat(CertUtils.getAttributeValue(cert.getSubjectX500Principal(), "cn")).isEqualTo(SUBJECT_CN);
}
@Test
public void multiValuedRDNsAreCorrectlyHandled() {
}
@Test
public void topLevelValueReturnedWhenAttributeIsDefinedMultipleTimes() {
}
@Test
}
}