public class DeviceAuthorizer extends Object implements Authorizer
Constructor and Description |
---|
DeviceAuthorizer() |
Modifier and Type | Method and Description |
---|---|
void |
init(Map<String,String> globalProperties)
This is used to initialize the authenticator
|
boolean |
isAuthorized(AuthenticationInfo authenticationInfo,
javax.websocket.Session session,
String stream)
Check whether the client is authorized to connect with the stream.
|
public void init(Map<String,String> globalProperties)
Authorizer
init
in interface Authorizer
globalProperties
- related to the output adapterpublic boolean isAuthorized(AuthenticationInfo authenticationInfo, javax.websocket.Session session, String stream)
Authorizer
isAuthorized
in interface Authorizer
authenticationInfo
- authenticated client information.session
- request session of the client.stream
- stream name of the client connecting to.Copyright © 2017 WSO2. All rights reserved.