blob: a50b877e45b5c918e3d7ff9fe1029a7cff1cfabe [file] [log] [blame]
/*
* Copyright (c) 2020 Kentyou.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Kentyou - initial API and implementation
*/
package org.eclipse.sensinact.gateway.nthbnd.endpoint.test;
import org.eclipse.sensinact.gateway.core.security.AccessLevelOption;
import org.eclipse.sensinact.gateway.core.security.AuthorizationService;
import org.eclipse.sensinact.gateway.core.security.AuthorizationServiceException;
class MyAuthorization implements AuthorizationService {
/**
* @inheritDoc
* @see AuthorizationService#getAuthenticatedAccessLevelOption(java.lang.String, long)
*/
@Override
public AccessLevelOption getAuthenticatedAccessLevelOption(String path, long uid) throws AuthorizationServiceException {
return AccessLevelOption.ANONYMOUS;
}
/**
* @inheritDoc
* @see AuthorizationService#getAuthenticatedAccessLevelOption(java.lang.String, java.lang.String)
*/
@Override
public AccessLevelOption getAuthenticatedAccessLevelOption(String path, String publicKey) throws AuthorizationServiceException {
return AccessLevelOption.ANONYMOUS;
}
}