parent
646b3e48b3
commit
f3828924ff
|
|
@ -128,6 +128,18 @@ public class AccessControlEntryImpl implements AccessControlEntry,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int result = this.acl.hashCode();
|
||||||
|
result = 31 * result + this.permission.hashCode();
|
||||||
|
result = 31 * result + (this.id != null ? this.id.hashCode() : 0);
|
||||||
|
result = 31 * result + this.sid.hashCode();
|
||||||
|
result = 31 * result + (this.auditFailure ? 1 : 0);
|
||||||
|
result = 31 * result + (this.auditSuccess ? 1 : 0);
|
||||||
|
result = 31 * result + (this.granting ? 1 : 0);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
public Acl getAcl() {
|
public Acl getAcl() {
|
||||||
return acl;
|
return acl;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -325,6 +325,22 @@ public class AclImpl implements Acl, MutableAcl, AuditableAcl, OwnershipAcl {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int result = this.parentAcl != null ? this.parentAcl.hashCode() : 0;
|
||||||
|
result = 31 * result + this.aclAuthorizationStrategy.hashCode();
|
||||||
|
result = 31 * result + (this.permissionGrantingStrategy != null ?
|
||||||
|
this.permissionGrantingStrategy.hashCode() :
|
||||||
|
0);
|
||||||
|
result = 31 * result + (this.aces != null ? this.aces.hashCode() : 0);
|
||||||
|
result = 31 * result + this.objectIdentity.hashCode();
|
||||||
|
result = 31 * result + this.id.hashCode();
|
||||||
|
result = 31 * result + (this.owner != null ? this.owner.hashCode() : 0);
|
||||||
|
result = 31 * result + (this.loadedSids != null ? this.loadedSids.hashCode() : 0);
|
||||||
|
result = 31 * result + (this.entriesInheriting ? 1 : 0);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("AclImpl[");
|
sb.append("AclImpl[");
|
||||||
|
|
|
||||||
|
|
@ -144,6 +144,17 @@ public class CasAuthenticationToken extends AbstractAuthenticationToken implemen
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int result = super.hashCode();
|
||||||
|
result = 31 * result + this.credentials.hashCode();
|
||||||
|
result = 31 * result + this.principal.hashCode();
|
||||||
|
result = 31 * result + this.userDetails.hashCode();
|
||||||
|
result = 31 * result + this.keyHash;
|
||||||
|
result = 31 * result + (this.assertion != null ? this.assertion.hashCode() : 0);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
public Object getCredentials() {
|
public Object getCredentials() {
|
||||||
return this.credentials;
|
return this.credentials;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,13 @@ public class AnonymousAuthenticationToken extends AbstractAuthenticationToken im
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int result = super.hashCode();
|
||||||
|
result = 31 * result + this.keyHash;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Always returns an empty <code>String</code>
|
* Always returns an empty <code>String</code>
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -120,4 +120,10 @@ public class RememberMeAuthenticationToken extends AbstractAuthenticationToken {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int result = super.hashCode();
|
||||||
|
result = 31 * result + this.keyHash;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,23 @@ public final class Header {
|
||||||
return this.headerValues;
|
return this.headerValues;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
Header header = (Header) o;
|
||||||
|
|
||||||
|
if (!this.headerName.equals(header.headerName)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return this.headerValues.equals(header.headerValues);
|
||||||
|
}
|
||||||
|
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return headerName.hashCode() + headerValues.hashCode();
|
return headerName.hashCode() + headerValues.hashCode();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue