@ThreadSafe public class ScopedStringAttributeValue extends StringAttributeValue
| Modifier and Type | Field and Description |
|---|---|
private String |
scope
Scope of the attribute value.
|
| Constructor and Description |
|---|
ScopedStringAttributeValue(String attributeValue,
String valueScope)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDisplayValue()
Get a displayable form of the value for user interfaces and similar purposes.
|
String |
getScope()
Get the scope of the value.
|
int |
hashCode() |
String |
toString() |
static IdPAttributeValue<?> |
valueOf(String value,
String scope)
Returns an
EmptyAttributeValue or ScopedStringAttributeValue as appropriate. |
getValue, valueOfprivate final String scope
public ScopedStringAttributeValue(@Nonnull@NotEmpty@ParameterName(name="attributeValue") String attributeValue, @Nonnull@NotEmpty@ParameterName(name="valueScope") String valueScope)
attributeValue - the value of the attributevalueScope - scope of the value@Nonnull @NotEmpty public final String getScope()
@Nonnull @NotEmpty public String getDisplayValue()
getDisplayValue in interface IdPAttributeValue<String>getDisplayValue in class StringAttributeValuepublic boolean equals(@Nullable Object obj)
equals in class StringAttributeValuepublic int hashCode()
hashCode in class StringAttributeValue@Nonnull @NotEmpty public String toString()
toString in class StringAttributeValuepublic static IdPAttributeValue<?> valueOf(@Nullable String value, @Nonnull@NotEmpty String scope)
EmptyAttributeValue or ScopedStringAttributeValue as appropriate. This method should
be preferred over the constructor when the value may be null or empty.value - to inspectscope - of the valueEmptyAttributeValue or ScopedStringAttributeValueCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.