Code example for X500Principal

Methods: getEncoded

0
    /** {@inheritDoc} */ 
    public byte[] getEncoded(X500Principal principal) {
        if (principal == null) {
            throw new NullPointerException("X500Principal may not be null");
        } 
        return principal.getEncoded();
    } 
 
    /** {@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");
        }