public class DefaultAuthorizationManager extends AuthorizationManager
AuthorizationManager.ServiceToDeviceKey| Constructor and Description |
|---|
DefaultAuthorizationManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkDevice(EndpointReference epr,
CredentialInfo credentialInfo)
Authorizes a device or throws an AuthenticationException.
|
void |
checkDevice(LocalDevice localDevice,
GetMessage get,
ConnectionInfo connectionInfo) |
void |
checkDevice(LocalDevice localDevice,
SecurityKey securityKey) |
void |
checkEvent(EventListener eventListener,
ClientSubscription clientSubscripton,
InvokeMessage invoke,
ConnectionInfo connectionInfo) |
void |
checkEvent(EventListener eventListener,
ClientSubscription clientSubscripton,
URI actionUri,
CredentialInfo credentialInfo) |
void |
checkGetStatus(LocalService localService,
ClientSubscription subscription,
CredentialInfo credentialInfo) |
void |
checkGetStatus(LocalService localService,
GetStatusMessage getStatus,
ConnectionInfo connectionInfo) |
void |
checkInvoke(LocalService localService,
Operation op,
CredentialInfo credentialInfo) |
void |
checkInvoke(LocalService localService,
Operation op,
InvokeMessage invoke,
ConnectionInfo connectionInfo) |
void |
checkRenew(LocalService localService,
ClientSubscription subscription,
long duration,
CredentialInfo credentialInfo) |
void |
checkRenew(LocalService localService,
RenewMessage renew,
ConnectionInfo connectionInfo) |
void |
checkResource(URI request,
RequestHeader header,
Resource resource,
ConnectionInfo connectionInfo) |
protected void |
checkService(LocalService localService,
CredentialInfo credentialInfo)
Authorizes a service or throws an AuthenticationException.
|
void |
checkService(LocalService localService,
GetMetadataMessage getMetadata,
ConnectionInfo connectionInfo) |
void |
checkService(LocalService localService,
SecurityKey securityKey) |
void |
checkSubscribe(LocalService localService,
java.lang.String clientSubscriptionId,
URISet eventActionURIs,
long duration,
CredentialInfo credentialInfo) |
void |
checkSubscribe(LocalService localService,
SubscribeMessage subscribe,
ConnectionInfo connectionInfo) |
void |
checkUnsubscribe(LocalService localService,
ClientSubscription subscription,
CredentialInfo credentialInfo) |
void |
checkUnsubscribe(LocalService localService,
UnsubscribeMessage unsubscribe,
ConnectionInfo connectionInfo) |
protected boolean |
checkUserInGroup(CredentialInfo credentialInfo,
HashSet httpGroup)
Checks whether the credential fit to the authorization information.
|
addDeviceGroup, addGroupToResources, addRequestURI2deviceEPR, addRequestURI2ServiceId, addServiceGroup, getDeviceGroup, getEPRforRequestURI, getResources, getSDKforRequestURI, getServiceGroup, getServiceGroupById, removeRequestURI2ServiceIdprotected boolean checkUserInGroup(CredentialInfo credentialInfo, HashSet httpGroup)
credentialInfo - httpGroup - protected void checkDevice(EndpointReference epr, CredentialInfo credentialInfo) throws AuthorizationException
epr - the devices EndpointReferencecredentialInfo - the given credential infosAuthorizationExceptionprotected void checkService(LocalService localService, CredentialInfo credentialInfo) throws AuthorizationException
localService - the service to authorizecredentialInfo - the given credential infosAuthorizationExceptionpublic void checkDevice(LocalDevice localDevice, GetMessage get, ConnectionInfo connectionInfo) throws AuthorizationException
checkDevice in class AuthorizationManagerAuthorizationExceptionpublic void checkDevice(LocalDevice localDevice, SecurityKey securityKey) throws AuthorizationException
checkDevice in class AuthorizationManagerAuthorizationExceptionpublic void checkService(LocalService localService, GetMetadataMessage getMetadata, ConnectionInfo connectionInfo) throws AuthorizationException
checkService in class AuthorizationManagerAuthorizationExceptionpublic void checkService(LocalService localService, SecurityKey securityKey) throws AuthorizationException
checkService in class AuthorizationManagerAuthorizationExceptionpublic void checkResource(URI request, RequestHeader header, Resource resource, ConnectionInfo connectionInfo) throws AuthorizationException
checkResource in class AuthorizationManagerAuthorizationExceptionpublic void checkInvoke(LocalService localService, Operation op, InvokeMessage invoke, ConnectionInfo connectionInfo) throws AuthorizationException
checkInvoke in class AuthorizationManagerAuthorizationExceptionpublic void checkInvoke(LocalService localService, Operation op, CredentialInfo credentialInfo) throws AuthorizationException
checkInvoke in class AuthorizationManagerAuthorizationExceptionpublic void checkEvent(EventListener eventListener, ClientSubscription clientSubscripton, InvokeMessage invoke, ConnectionInfo connectionInfo) throws AuthorizationException
checkEvent in class AuthorizationManagerAuthorizationExceptionpublic void checkEvent(EventListener eventListener, ClientSubscription clientSubscripton, URI actionUri, CredentialInfo credentialInfo) throws AuthorizationException
checkEvent in class AuthorizationManagerAuthorizationExceptionpublic void checkSubscribe(LocalService localService, SubscribeMessage subscribe, ConnectionInfo connectionInfo) throws AuthorizationException
checkSubscribe in class AuthorizationManagerAuthorizationExceptionpublic void checkSubscribe(LocalService localService, java.lang.String clientSubscriptionId, URISet eventActionURIs, long duration, CredentialInfo credentialInfo) throws AuthorizationException
checkSubscribe in class AuthorizationManagerAuthorizationExceptionpublic void checkUnsubscribe(LocalService localService, UnsubscribeMessage unsubscribe, ConnectionInfo connectionInfo) throws AuthorizationException
checkUnsubscribe in class AuthorizationManagerAuthorizationExceptionpublic void checkUnsubscribe(LocalService localService, ClientSubscription subscription, CredentialInfo credentialInfo) throws AuthorizationException
checkUnsubscribe in class AuthorizationManagerAuthorizationExceptionpublic void checkGetStatus(LocalService localService, GetStatusMessage getStatus, ConnectionInfo connectionInfo) throws AuthorizationException
checkGetStatus in class AuthorizationManagerAuthorizationExceptionpublic void checkGetStatus(LocalService localService, ClientSubscription subscription, CredentialInfo credentialInfo) throws AuthorizationException
checkGetStatus in class AuthorizationManagerAuthorizationExceptionpublic void checkRenew(LocalService localService, RenewMessage renew, ConnectionInfo connectionInfo) throws AuthorizationException
checkRenew in class AuthorizationManagerAuthorizationExceptionpublic void checkRenew(LocalService localService, ClientSubscription subscription, long duration, CredentialInfo credentialInfo) throws AuthorizationException
checkRenew in class AuthorizationManagerAuthorizationException