public int hashCode() { int hash = 5; hash = 67 * hash + (this.subject != null ? this.subject.hashCode() : 0); return hash; }
/** * {@inheritDoc} */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((_subject == null) ? 0 : _subject.hashCode()); return result; }
public int hashCode() { return this.subject.hashCode(); }
public Integer run() { return subject.hashCode(); } });
public Integer run() { return subject.hashCode(); } });
/** * {@inheritDoc} */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((_subject == null) ? 0 : _subject.hashCode()); return result; }
public Object run() { Object value = null; if( other == null ) value = Integer.valueOf(subject.hashCode()); else value = Boolean.valueOf(subject.equals(other)); return value; } static int hashCode(Subject subject)
/** * Get the hash code for a Subject * @param subject The Subject * @return The hash code */ static int hashCode(final Subject subject) { if (System.getSecurityManager() == null) return subject.hashCode(); Integer hashCode = AccessController.doPrivileged(new PrivilegedAction<Integer>() { public Integer run() { return subject.hashCode(); } }); return hashCode.intValue(); }
/** * Get the hash code for a Subject * @param subject The Subject * @return The hash code */ static int hashCode(final Subject subject) { if (System.getSecurityManager() == null) return subject.hashCode(); Integer hashCode = AccessController.doPrivileged(new PrivilegedAction<Integer>() { public Integer run() { return subject.hashCode(); } }); return hashCode.intValue(); }
public SubjectCRIKey( final Subject subject, final ConnectionRequestInfo cri) { this.subject = subject; this.cri = cri; this.hashcode = (subject == null ? 17 : subject.hashCode() * 17) ^ (cri == null ? 1 : cri.hashCode()); }
private SSLSocketFactory getSSLSocketFactory() { AccessControlContext ac = AccessController.getContext(); Subject s = Subject.getSubject(ac); // no real Subject: can only use the one from setSSLSocketFactory if (s == null || s.getPrincipals().isEmpty()) { return sslSocketFactory; } // lazy init if (this.mySocketFactory == null) { log.debug("getSSLSocketFactory: " + s); this.mySocketFactory = SSLUtil.getSocketFactory(s); this.subjectHashCode = s.hashCode(); } else { int c = s.hashCode(); if (c != subjectHashCode) throw new IllegalStateException("Illegal use of " + this.getClass().getSimpleName() + ": subject change not supported for internal SSLSocketFactory"); } return this.mySocketFactory; }
public int hashCode() { int result; result = m_subject.hashCode(); result = 31 * result + m_resourceAttributes.hashCode(); result = 31 * result + m_actionAttributes.hashCode(); return result; }