Package org.mycore.user2
Class MCRRealm
java.lang.Object
org.mycore.user2.MCRRealm
Represents a realm of users. Each user belongs to a realm. Realms are configured
in the file realms.xml. A realm determines the method that is used to login the user.
There is always a local default realm, which is defined by the attribute local in realms.xml.
- Author:
- Frank Lützenkirchen, Thomas Scheffler (yagee)
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getID()
Returns the unique ID of the realm.getLabel()
Returns the label in the current languageReturns the URL where users from this realm can logingetLoginURL
(String redirectURL) Returns the URL where users from this realm can login with redirect URL attached.Returns the URL where users from this realm can change their passwordint
hashCode()
void
setRealmParameter
(String realmParameter) toString()
-
Field Details
-
USER_INFORMATION_ATTR
- See Also:
-
-
Method Details
-
getID
Returns the unique ID of the realm.- Returns:
- the unique ID of the realm.
-
getLabel
Returns the label in the current language -
getPasswordChangeURL
Returns the URL where users from this realm can change their password -
getLoginURL
Returns the URL where users from this realm can login -
getCreateURL
- Returns:
- the createURL
-
equals
-
hashCode
public int hashCode() -
toString
-
getLoginURL
Returns the URL where users from this realm can login with redirect URL attached. If this realm has a attributredirectParameter
defined this method returns a complete login URL withredirectURL
properly configured.- Parameters:
redirectURL
- URL where to redirect to after login succeeds.- Returns:
- the same as
getLoginURL()
ifredirectParameter
is undefined for this realm
-
getRealmParameter
-
setRealmParameter
-