Search in sources :

Example 31 with HashCodeBuilder

use of org.apache.commons.lang3.builder.HashCodeBuilder in project cas by apereo.

the class DuoCredential method hashCode.

@Override
public int hashCode() {
    final HashCodeBuilder builder = new HashCodeBuilder(97, 31);
    builder.append(this.username);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang3.builder.HashCodeBuilder)

Example 32 with HashCodeBuilder

use of org.apache.commons.lang3.builder.HashCodeBuilder in project cas by apereo.

the class AuthyTokenCredential method hashCode.

@Override
public int hashCode() {
    final HashCodeBuilder builder = new HashCodeBuilder(97, 31);
    builder.append(this.token);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang3.builder.HashCodeBuilder)

Example 33 with HashCodeBuilder

use of org.apache.commons.lang3.builder.HashCodeBuilder in project cas by apereo.

the class DefaultAuthentication method hashCode.

@Override
public int hashCode() {
    final HashCodeBuilder builder = new HashCodeBuilder(97, 31);
    builder.append(this.principal);
    builder.append(this.authenticationDate);
    builder.append(this.attributes);
    builder.append(this.credentials);
    builder.append(this.successes);
    builder.append(this.failures);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang3.builder.HashCodeBuilder)

Example 34 with HashCodeBuilder

use of org.apache.commons.lang3.builder.HashCodeBuilder in project cas by apereo.

the class RadiusTokenCredential method hashCode.

@Override
public int hashCode() {
    final HashCodeBuilder builder = new HashCodeBuilder(97, 31);
    builder.append(this.token);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang3.builder.HashCodeBuilder)

Example 35 with HashCodeBuilder

use of org.apache.commons.lang3.builder.HashCodeBuilder in project OpenAttestation by OpenAttestation.

the class PcrEventLog method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder(17, 57);
    builder.append(pcrIndex);
    for (Measurement m : eventLog) {
        builder.append(m);
    }
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang3.builder.HashCodeBuilder)

Aggregations

HashCodeBuilder (org.apache.commons.lang3.builder.HashCodeBuilder)63 IOException (java.io.IOException)1 KeyManagementException (java.security.KeyManagementException)1 KeyStoreException (java.security.KeyStoreException)1 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)1 CertificateException (java.security.cert.CertificateException)1 X509Certificate (java.security.cert.X509Certificate)1