Package com.adobe.granite.auth.saml.spi
Class SamlCredentials
java.lang.Object
com.adobe.granite.auth.saml.spi.SamlCredentials
- All Implemented Interfaces:
Serializable,Credentials
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectgetAttribute(@NotNull String name) Returns the value of the named attribute as anObject, ornullif no attribute of the given name exists.@NotNull StringgetIdp()getIdWithIdp(String id) @NotNull StringReturns the userId.voidremoveAttribute(@NotNull String name) Removes an attribute from this credentials instance.voidsetAttribute(@NotNull String name, @Nullable Object value) Stores an attribute in this credentials instance.voidsetSamlGroups(@NotNull Set<String> samlGroupIds)
-
Constructor Details
-
SamlCredentials
-
-
Method Details
-
getIdp
-
getSamlGroupIds
-
setSamlGroups
-
getUserId
Returns the userId.- Returns:
- the userId.
-
setAttribute
Stores an attribute in this credentials instance. If the specifiedvalueisnullthe attribute will be removed.- Parameters:
name- aStringspecifying the name of the attributevalue- theObjectto be stored
-
getAttribute
Returns the value of the named attribute as anObject, ornullif no attribute of the given name exists.- Parameters:
name- aStringspecifying the name of the attribute- Returns:
- an
Objectcontaining the value of the attribute, ornullif the attribute does not exist
-
removeAttribute
Removes an attribute from this credentials instance.- Parameters:
name- aStringspecifying the name of the attribute to remove
-
getAttributes
- Returns:
- an immutable map containing the attributes available to this credentials instance
-
getIdWithIdp
-