Class SoffidPrincipalImpl

  • All Implemented Interfaces:
    com.soffid.iam.common.security.SoffidPrincipal, Serializable, Principal, org.apache.catalina.TomcatPrincipal

    public class SoffidPrincipalImpl
    extends org.apache.catalina.realm.GenericPrincipal
    implements com.soffid.iam.common.security.SoffidPrincipal
    See Also:
    Serialized Form
    • Method Detail

      • clearCache

        public static void clearCache()
      • getFullName

        public String getFullName()
        Specified by:
        getFullName in interface com.soffid.iam.common.security.SoffidPrincipal
      • getTenant

        public String getTenant()
        Specified by:
        getTenant in interface com.soffid.iam.common.security.SoffidPrincipal
      • getHolderGroup

        public String getHolderGroup()
        Specified by:
        getHolderGroup in interface com.soffid.iam.common.security.SoffidPrincipal
      • refresh

        public void refresh()
      • fetchPrincipalProperties

        protected void fetchPrincipalProperties()
      • updatePermissions

        protected void updatePermissions​(com.soffid.iam.api.Account acc)
                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getGroups

        public String[] getGroups()
        Specified by:
        getGroups in interface com.soffid.iam.common.security.SoffidPrincipal
      • getSoffidRoles

        public String[] getSoffidRoles()
        Specified by:
        getSoffidRoles in interface com.soffid.iam.common.security.SoffidPrincipal
      • getGroupsAndRoles

        public String[] getGroupsAndRoles()
        Specified by:
        getGroupsAndRoles in interface com.soffid.iam.common.security.SoffidPrincipal
      • getUserName

        public String getUserName()
        Specified by:
        getUserName in interface com.soffid.iam.common.security.SoffidPrincipal
      • getObligations

        public Map<String,​Map<String,​String>> getObligations()
        Specified by:
        getObligations in interface com.soffid.iam.common.security.SoffidPrincipal
      • setObligation

        public void setObligation​(String obligation,
                                  Map<String,​String> properties,
                                  long timeout)
        Specified by:
        setObligation in interface com.soffid.iam.common.security.SoffidPrincipal
      • getObligation

        public Map<String,​String> getObligation​(String obligationName)
        Specified by:
        getObligation in interface com.soffid.iam.common.security.SoffidPrincipal
      • getHolderGroups

        public List<String> getHolderGroups()
        Specified by:
        getHolderGroups in interface com.soffid.iam.common.security.SoffidPrincipal
      • setHolderGroup

        public void setHolderGroup​(String holderGroup)
        Specified by:
        setHolderGroup in interface com.soffid.iam.common.security.SoffidPrincipal
      • getRoles

        public String[] getRoles()
        Specified by:
        getRoles in interface com.soffid.iam.common.security.SoffidPrincipal
        Overrides:
        getRoles in class org.apache.catalina.realm.GenericPrincipal
      • hasRole

        public boolean hasRole​(String role)
        Specified by:
        hasRole in interface com.soffid.iam.common.security.SoffidPrincipal
        Overrides:
        hasRole in class org.apache.catalina.realm.GenericPrincipal
      • getRoleIds

        public List<Long> getRoleIds()
        Specified by:
        getRoleIds in interface com.soffid.iam.common.security.SoffidPrincipal
      • getAccountIds

        public List<Long> getAccountIds()
        Specified by:
        getAccountIds in interface com.soffid.iam.common.security.SoffidPrincipal
      • getGroupIds

        public List<Long> getGroupIds()
        Specified by:
        getGroupIds in interface com.soffid.iam.common.security.SoffidPrincipal
      • getUserId

        public Long getUserId()
        Specified by:
        getUserId in interface com.soffid.iam.common.security.SoffidPrincipal