Java Code Examples for sun.security.x509.X509CertImpl#getSubjectX500Principal()

The following examples show how to use sun.security.x509.X509CertImpl#getSubjectX500Principal() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: X509Certificate.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 2
Source File: X509Certificate.java    From j2objc with Apache License 2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 3
Source File: X509Certificate.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 4
Source File: X509Certificate.java    From jdk-1.7-annotated with Apache License 2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an <code>X500Principal</code>.  If the subject value
 * is empty, then the <code>getName()</code> method of the returned
 * <code>X500Principal</code> object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an <code>X500Principal</code> representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 5
Source File: X509Certificate.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 6
Source File: X509Certificate.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 7
Source File: X509Certificate.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 8
Source File: X509Certificate.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 9
Source File: X509Certificate.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 10
Source File: X509Certificate.java    From Java8CN with Apache License 2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 11
Source File: X509Certificate.java    From jdk1.8-source-analysis with Apache License 2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 12
Source File: X509Certificate.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 13
Source File: X509Certificate.java    From Bytecoder with Apache License 2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 14
Source File: X509Certificate.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 15
Source File: X509Certificate.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 16
Source File: X509Certificate.java    From JDKSourceCode1.8 with MIT License 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 17
Source File: X509Certificate.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 18
Source File: X509Certificate.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}
 
Example 19
Source File: X509Certificate.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the subject (subject distinguished name) value from the
 * certificate as an {@code X500Principal}.  If the subject value
 * is empty, then the {@code getName()} method of the returned
 * {@code X500Principal} object returns an empty string ("").
 * <p>
 * It is recommended that subclasses override this method.
 *
 * @return an {@code X500Principal} representing the subject
 *          distinguished name
 * @since 1.4
 */
public X500Principal getSubjectX500Principal() {
    if (subjectX500Principal == null) {
        subjectX500Principal = X509CertImpl.getSubjectX500Principal(this);
    }
    return subjectX500Principal;
}