@Override public int hashCode() { int result = 17; byte[] token = getToken(); if (token != null) { result = 31 * result + Arrays.hashCode(token); } result = 31 * result + getValueType().hashCode(); result = 31 * result + getEncodingType().hashCode(); return result; }
@Override public int hashCode() { int result = 17; byte[] token = getToken(); if (token != null) { result = 31 * result + Arrays.hashCode(token); } result = 31 * result + getValueType().hashCode(); result = 31 * result + getEncodingType().hashCode(); return result; }
@Override public boolean equals(Object object) { if (!(object instanceof BinarySecurity)) { return false; } BinarySecurity binarySecurity = (BinarySecurity)object; byte[] token = binarySecurity.getToken(); if (!Arrays.equals(token, getToken())) { return false; } String valueType = binarySecurity.getValueType(); if (!valueType.equals(getValueType())) { return false; } String encodingType = binarySecurity.getEncodingType(); if (!encodingType.equals(getEncodingType())) { return false; } return true; } }
@Override public boolean equals(Object object) { if (!(object instanceof BinarySecurity)) { return false; } BinarySecurity binarySecurity = (BinarySecurity)object; byte[] token = binarySecurity.getToken(); if (!Arrays.equals(token, getToken())) { return false; } String valueType = binarySecurity.getValueType(); if (!valueType.equals(getValueType())) { return false; } String encodingType = binarySecurity.getEncodingType(); if (!encodingType.equals(getEncodingType())) { return false; } return true; } }
); String encoding = getEncodingType(); if (bspCompliant && !BASE64_ENCODING.equals(encoding)) {
); String encoding = getEncodingType(); if (bspCompliant && !BASE64_ENCODING.equals(encoding)) {