Package io.milton.principal
Interface DiscretePrincipal
-
- All Known Subinterfaces:
CalDavPrincipal,CardDavPrincipal,DirectoryGatewayCardDavPrincipal
public interface DiscretePrincipal extends Principal, Resource
Indicates a principle which is identifiable by a URL, like a user or an application defined group
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.milton.principal.Principal
Principal.PrincipleId
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetPrincipalURL()A URL to identify this principle **and** the owner of this principal.-
Methods inherited from interface io.milton.principal.Principal
getIdenitifer
-
Methods inherited from interface io.milton.resource.Resource
authenticate, authorise, checkRedirect, getModifiedDate, getName, getRealm, getUniqueId
-
-
-
-
Method Detail
-
getPrincipalURL
String getPrincipalURL()
A URL to identify this principle **and** the owner of this principal. Note the relationship between this and the AccessControlledResource.getPrincipalURL method which returns the principal that owns the resource. It is assumed that where a AccessControlledResource instance is also a DiscretePrincipal that the getPrincipalURL method will return the url of itself. In other words, we make the semantic decision that a principle owns itself.- Returns:
-
-