Package org.radarbase.auth.authorization
Class AuthorityReference
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class AuthorityReference implements Serializable
An authority referenced to a specific entity. Only roles with global scope do not need a referent.
-
-
Constructor Summary
Constructors Constructor Description AuthorityReference(RoleAuthority role, String referent)
Authority reference with given role and the object it refers to. AuthorityReference(RoleAuthority role)
Authority reference with given role and the object it refers to. AuthorityReference(String authority, String referent)
Authority reference with given authority and the object it refers to. AuthorityReference(String authority)
Authority reference with given authority and the object it refers to. AuthorityReference(RoleAuthority role, String authority, String referent)
-
Method Summary
Modifier and Type Method Description final RoleAuthority
getRole()
final String
getAuthority()
final String
getReferent()
-
-
Constructor Detail
-
AuthorityReference
AuthorityReference(RoleAuthority role, String referent)
Authority reference with given role and the object it refers to.- Parameters:
role
- user role.referent
- reference.
-
AuthorityReference
AuthorityReference(RoleAuthority role)
Authority reference with given role and the object it refers to.- Parameters:
role
- user role.
-
AuthorityReference
AuthorityReference(String authority, String referent)
Authority reference with given authority and the object it refers to.- Parameters:
authority
- user authority.referent
- reference.
-
AuthorityReference
AuthorityReference(String authority)
Authority reference with given authority and the object it refers to.- Parameters:
authority
- user authority.
-
AuthorityReference
AuthorityReference(RoleAuthority role, String authority, String referent)
-
-
Method Detail
-
getRole
final RoleAuthority getRole()
-
getAuthority
final String getAuthority()
-
getReferent
final String getReferent()
-
-
-
-