Code example for X500Principal

Methods: getName

0
    /** {@inheritDoc} */ 
    public String getName(X500Principal principal) {
        if (principal == null) {
            throw new NullPointerException("X500Principal may not be null");
        } 
        return principal.getName();
    } 
 
    /** {@inheritDoc} */ 
    public String getName(X500Principal principal, String format) {
        if (principal == null) {
            throw new NullPointerException("X500Principal may not be null");
        } 
        return principal.getName(format);
    } 
 
    /** {@inheritDoc} */ 
    public X500Principal parse(String name) {
        if (name == null) {
            throw new NullPointerException("X.500 name string may not be null");
        }