INNER CODE UNIT · Java

hashCode

bujiio/buji-pac4j · src/main/java/io/buji/pac4j/subject/Pac4jPrincipal.java:98

    public int hashCode() {
        return profiles != null ? profiles.hashCode() : 0;
    }

    @Override
    public String toString() {
        return getName();
    }

    /**
     * Returns a name for the principal based upon one of the attributes
     * of the main CommonProfile.  The attribute name used to query the CommonProfile 
     * is specified in the constructor. 
     * 
     * @return a name for the Principal or null if the attribute is not populated.
     */
    @Override
    public String getName() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…