/** {@inheritDoc} */ @Override public int hashCode() { return Objects.hashCode(getValue(), scope); }
/** {@inheritDoc} */ @Override public boolean equals(@Nullable final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof ScopedStringAttributeValue)) { return false; } final ScopedStringAttributeValue otherValue = (ScopedStringAttributeValue) obj; return java.util.Objects.equals(getValue(), otherValue.getValue()) && java.util.Objects.equals(scope, otherValue.scope); }
/** {@inheritDoc} */ @Override @Nonnull @NotEmpty public String toString() { return MoreObjects.toStringHelper(this).add("value", getValue()).add("scope", scope).toString(); }
/** {@inheritDoc} */ @Override @Nonnull @NotEmpty public String getDisplayValue() { return getValue() + '@' + scope; }
if (value instanceof ScopedStringAttributeValue) { log.debug("Generating NameID from Scoped String-valued attribute {}", sourceId); return ((ScopedStringAttributeValue) value).getValue() + delimiter + ((ScopedStringAttributeValue) value).getScope(); } else if (value instanceof StringAttributeValue) {
if (value instanceof ScopedStringAttributeValue) { log.debug("Generating NameIdentifier from Scoped String-valued attribute {}", sourceId); return ((ScopedStringAttributeValue) value).getValue() + delimiter + ((ScopedStringAttributeValue) value).getScope(); } else if (value instanceof StringAttributeValue) {
} else if (value instanceof ScopedStringAttributeValue) { final JsonArrayBuilder arrayBuilder = getJsonArrayBuilder(); arrayBuilder.add(((ScopedStringAttributeValue) value).getValue()); arrayBuilder.add(((ScopedStringAttributeValue) value).getScope()); builder.add(SCOPED_VALUE_FIELD, arrayBuilder);
objectOutputStream.writeObject(((ScopedStringAttributeValue) value).getValue() + '@' + ((ScopedStringAttributeValue) value).getScope()); } else if (value instanceof XMLObjectAttributeValue) {
objectOutputStream.writeObject(((ScopedStringAttributeValue) value).getValue() + '@' + ((ScopedStringAttributeValue) value).getScope()); } else if (value instanceof XMLObjectAttributeValue) {
log.debug("Generating persistent NameID from Scoped String-valued attribute {}", sourceId); return persistentIdStrategy.generate(responderId, relyingPartyId, subjectCtx.getPrincipalName(), ((ScopedStringAttributeValue) value).getValue() + '@' + ((ScopedStringAttributeValue) value).getScope()); } else if (value instanceof StringAttributeValue) {
} else if (val instanceof ScopedStringAttributeValue) { final ScopedStringAttributeValue scoped = (ScopedStringAttributeValue) val; final String withScope = scoped.getValue() + delimiter + scoped.getScope(); log.debug("{} Using attribute {} scoped value {} as input to transforms", getLogPrefix(), id, withScope);