@Override public int hashCode() { return getCanonicalName().hashCode(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } X500Principal principal = (X500Principal) o; return getCanonicalName().equals(principal.getCanonicalName()); }
/** * Returns a string representation of the distinguished name contained in * this X.500 principal. The format of the representation can be chosen. * Valid arguments are {@link #RFC1779}, {@link #RFC2253}, and * {@link #CANONICAL}. The representations are specified in RFC 1779 and RFC * 2253, respectively. The canonical form is based on RFC 2253, but adds * some canonicalizing operations like removing leading and trailing * whitespace, lower-casing the whole name, and bringing it into a * normalized Unicode representation. * * @param format * the name of the format to use for the representation * * @return the string representation * * @throws IllegalArgumentException * if the {@code format} argument is not one of the three * mentioned above */ public String getName(String format) { if (CANONICAL.equals(format)) { return getCanonicalName(); } return dn.getName(format); }
@Override public int hashCode() { return getCanonicalName().hashCode(); }
@Override public int hashCode() { return getCanonicalName().hashCode(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } X500Principal principal = (X500Principal) o; return getCanonicalName().equals(principal.getCanonicalName()); }
@Override public int hashCode() { return getCanonicalName().hashCode(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } X500Principal principal = (X500Principal) o; return getCanonicalName().equals(principal.getCanonicalName()); }
@Override public int hashCode() { return getCanonicalName().hashCode(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } X500Principal principal = (X500Principal) o; return getCanonicalName().equals(principal.getCanonicalName()); }
@Override public int hashCode() { return getCanonicalName().hashCode(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } X500Principal principal = (X500Principal) o; return getCanonicalName().equals(principal.getCanonicalName()); }
@Override public int hashCode() { return getCanonicalName().hashCode(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } X500Principal principal = (X500Principal) o; return getCanonicalName().equals(principal.getCanonicalName()); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } X500Principal principal = (X500Principal) o; return getCanonicalName().equals(principal.getCanonicalName()); }
/** * Returns a string representation of the distinguished name contained in * this X.500 principal. The format of the representation can be chosen. * Valid arguments are {@link #RFC1779}, {@link #RFC2253}, and * {@link #CANONICAL}. The representations are specified in RFC 1779 and RFC * 2253, respectively. The canonical form is based on RFC 2253, but adds * some canonicalizing operations like removing leading and trailing * whitespace, lower-casing the whole name, and bringing it into a * normalized Unicode representation. * * @param format * the name of the format to use for the representation * * @return the string representation * * @throws IllegalArgumentException * if the {@code format} argument is not one of the three * mentioned above */ public String getName(String format) { if (CANONICAL.equals(format)) { return getCanonicalName(); } return dn.getName(format); }
/** * Returns a string representation of the distinguished name contained in * this X.500 principal. The format of the representation can be chosen. * Valid arguments are {@link #RFC1779}, {@link #RFC2253}, and * {@link #CANONICAL}. The representations are specified in RFC 1779 and RFC * 2253, respectively. The canonical form is based on RFC 2253, but adds * some canonicalizing operations like removing leading and trailing * whitespace, lower-casing the whole name, and bringing it into a * normalized Unicode representation. * * @param format * the name of the format to use for the representation * * @return the string representation * * @throws IllegalArgumentException * if the {@code format} argument is not one of the three * mentioned above */ public String getName(String format) { if (CANONICAL.equals(format)) { return getCanonicalName(); } return dn.getName(format); }
/** * Returns a string representation of the distinguished name contained in * this X.500 principal. The format of the representation can be chosen. * Valid arguments are {@link #RFC1779}, {@link #RFC2253}, and * {@link #CANONICAL}. The representations are specified in RFC 1779 and RFC * 2253, respectively. The canonical form is based on RFC 2253, but adds * some canonicalizing operations like removing leading and trailing * whitespace, lower-casing the whole name, and bringing it into a * normalized Unicode representation. * * @param format * the name of the format to use for the representation * * @return the string representation * * @throws IllegalArgumentException * if the {@code format} argument is not one of the three * mentioned above */ public String getName(String format) { if (CANONICAL.equals(format)) { return getCanonicalName(); } return dn.getName(format); }
/** * Returns a string representation of the distinguished name contained in * this X.500 principal. The format of the representation can be chosen. * Valid arguments are {@link #RFC1779}, {@link #RFC2253}, and * {@link #CANONICAL}. The representations are specified in RFC 1779 and RFC * 2253, respectively. The canonical form is based on RFC 2253, but adds * some canonicalizing operations like removing leading and trailing * whitespace, lower-casing the whole name, and bringing it into a * normalized Unicode representation. * * @param format * the name of the format to use for the representation * * @return the string representation * * @throws IllegalArgumentException * if the {@code format} argument is not one of the three * mentioned above */ public String getName(String format) { if (CANONICAL.equals(format)) { return getCanonicalName(); } return dn.getName(format); }
/** * Returns a string representation of the distinguished name contained in * this X.500 principal. The format of the representation can be chosen. * Valid arguments are {@link #RFC1779}, {@link #RFC2253}, and * {@link #CANONICAL}. The representations are specified in RFC 1779 and RFC * 2253, respectively. The canonical form is based on RFC 2253, but adds * some canonicalizing operations like removing leading and trailing * whitespace, lower-casing the whole name, and bringing it into a * normalized Unicode representation. * * @param format * the name of the format to use for the representation * * @return the string representation * * @throws IllegalArgumentException * if the {@code format} argument is not one of the three * mentioned above */ public String getName(String format) { if (CANONICAL.equals(format)) { return getCanonicalName(); } return dn.getName(format); }