Class SamlCredentials

    • Constructor Summary

      Constructors 
      Constructor Description
      SamlCredentials​(java.lang.String userId, java.lang.String idp, boolean idpNameInUserId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable java.lang.Object getAttribute​(@NotNull java.lang.String name)
      Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.
      @NotNull java.util.Map<java.lang.String,​java.lang.Object> getAttributes()  
      @NotNull java.lang.String getIdp()  
      java.lang.String getIdWithIdp​(java.lang.String id)  
      @NotNull java.util.Set<java.lang.String> getSamlGroupIds()  
      @NotNull java.lang.String getUserId()
      Returns the userId.
      void removeAttribute​(@NotNull java.lang.String name)
      Removes an attribute from this credentials instance.
      void setAttribute​(@NotNull java.lang.String name, @Nullable java.lang.Object value)
      Stores an attribute in this credentials instance.
      void setSamlGroups​(@NotNull java.util.Set<java.lang.String> samlGroupIds)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SamlCredentials

        public SamlCredentials​(java.lang.String userId,
                               java.lang.String idp,
                               boolean idpNameInUserId)
    • Method Detail

      • getIdp

        @NotNull
        public @NotNull java.lang.String getIdp()
      • getSamlGroupIds

        @NotNull
        public @NotNull java.util.Set<java.lang.String> getSamlGroupIds()
      • setSamlGroups

        public void setSamlGroups​(@NotNull
                                  @NotNull java.util.Set<java.lang.String> samlGroupIds)
      • getUserId

        @NotNull
        public @NotNull java.lang.String getUserId()
        Returns the userId.
        Returns:
        the userId.
      • setAttribute

        public void setAttribute​(@NotNull
                                 @NotNull java.lang.String name,
                                 @Nullable
                                 @Nullable java.lang.Object value)
        Stores an attribute in this credentials instance. If the specified value is null the attribute will be removed.
        Parameters:
        name - a String specifying the name of the attribute
        value - the Object to be stored
      • getAttribute

        @Nullable
        public @Nullable java.lang.Object getAttribute​(@NotNull
                                                       @NotNull java.lang.String name)
        Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.
        Parameters:
        name - a String specifying the name of the attribute
        Returns:
        an Object containing the value of the attribute, or null if the attribute does not exist
      • removeAttribute

        public void removeAttribute​(@NotNull
                                    @NotNull java.lang.String name)
        Removes an attribute from this credentials instance.
        Parameters:
        name - a String specifying the name of the attribute to remove
      • getAttributes

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Returns:
        an immutable map containing the attributes available to this credentials instance
      • getIdWithIdp

        public java.lang.String getIdWithIdp​(java.lang.String id)