@Override
    public boolean equals(Object obj) {

        // Not equal if null or wrong type
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;

        final ObjectPermission other = (ObjectPermission) obj;

        // Not equal if different type
        if (this.type != other.type)
            return false;

        // If null identifier, equality depends on whether other identifier
        // is null
        if (identifier == null)
            return other.identifier == null;

        // Otherwise, equality depends entirely on identifier
        return identifier.equals(other.identifier);

    }
Returns the identifier of the specific object affected by this
permission.

@return The identifier of the specific object affected by this
        permission.
guacamole-ext/src/main/java/org/apache/guacamole/net/auth/permission/ObjectPermission.java