public class XmlAuthorizationManager extends DefaultAuthorizationManager
AuthorizationManager.ServiceToDeviceKey| Constructor and Description |
|---|
XmlAuthorizationManager(java.io.File authXmlFile) |
XmlAuthorizationManager(java.lang.String authXmlResource) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkDevice(EndpointReference epr,
CredentialInfo credentialInfo)
Authorizes a device or throws an AuthenticationException.
|
void |
checkResource(URI request,
RequestHeader header,
Resource resource,
ConnectionInfo connectionInfo) |
protected void |
checkService(LocalService localService,
CredentialInfo credentialInfo)
Authorizes a service or throws an AuthenticationException.
|
checkDevice, checkDevice, checkEvent, checkEvent, checkGetStatus, checkGetStatus, checkInvoke, checkInvoke, checkRenew, checkRenew, checkService, checkService, checkSubscribe, checkSubscribe, checkUnsubscribe, checkUnsubscribe, checkUserInGroupaddDeviceGroup, addGroupToResources, addRequestURI2deviceEPR, addRequestURI2ServiceId, addServiceGroup, getDeviceGroup, getEPRforRequestURI, getResources, getSDKforRequestURI, getServiceGroup, getServiceGroupById, removeRequestURI2ServiceIdpublic XmlAuthorizationManager(java.io.File authXmlFile)
public XmlAuthorizationManager(java.lang.String authXmlResource)
protected void checkDevice(EndpointReference epr, CredentialInfo credentialInfo)
DefaultAuthorizationManagercheckDevice in class DefaultAuthorizationManagerepr - the devices EndpointReferencecredentialInfo - the given credential infosprotected void checkService(LocalService localService, CredentialInfo credentialInfo) throws AuthorizationException
DefaultAuthorizationManagercheckService in class DefaultAuthorizationManagerlocalService - the service to authorizecredentialInfo - the given credential infosAuthorizationExceptionpublic void checkResource(URI request, RequestHeader header, Resource resource, ConnectionInfo connectionInfo) throws AuthorizationException
checkResource in class DefaultAuthorizationManagerAuthorizationException