Package ch.patchcode.jback.secModel
Interface Principal<TPerson extends Person,TPrivilege extends Privilege,TAuthenticationMean extends AuthenticationMean>
-
public interface Principal<TPerson extends Person,TPrivilege extends Privilege,TAuthenticationMean extends AuthenticationMean>Something that can be authenticated through someAuthenticationMeans and then has somePrivileges.An authenticated principal can then impersonate one or more
Persons.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<TPrivilege>getBasicPrivileges()Zero or morePrivileges the principal has anyway, regardless of role.List<TAuthenticationMean>getMeans()One or moreAuthenticationMeans the principal by be authenticated by.List<TPerson>getPersons()One or morePersons that this principal can impersonate.
-
-
-
Method Detail
-
getPersons
List<TPerson> getPersons()
One or morePersons that this principal can impersonate.- Returns:
- one or more
Persons that this principal can impersonate
-
getBasicPrivileges
List<TPrivilege> getBasicPrivileges()
Zero or morePrivileges the principal has anyway, regardless of role.- Returns:
- zero or more
Privileges the principal has anyway, regardless of role
-
getMeans
List<TAuthenticationMean> getMeans()
One or moreAuthenticationMeans the principal by be authenticated by.- Returns:
- one or more
AuthenticationMeans the principal by be authenticated by
-
-