lwm2m - authorization in Bootstrap session default true
This commit is contained in:
parent
2d10409042
commit
934a03ea79
@ -80,7 +80,7 @@ public class LwM2mDefaultBootstrapSessionManager extends DefaultBootstrapSession
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BootstrapSession begin(BootstrapRequest request, Identity clientIdentity) {
|
public BootstrapSession begin(BootstrapRequest request, Identity clientIdentity) {
|
||||||
boolean authorized;
|
boolean authorized = true;
|
||||||
Iterator<SecurityInfo> securityInfos;
|
Iterator<SecurityInfo> securityInfos;
|
||||||
try {
|
try {
|
||||||
if (bsSecurityStore != null && securityChecker != null) {
|
if (bsSecurityStore != null && securityChecker != null) {
|
||||||
@ -90,8 +90,6 @@ public class LwM2mDefaultBootstrapSessionManager extends DefaultBootstrapSession
|
|||||||
securityInfos = bsSecurityStore.getAllByEndpoint(request.getEndpointName());
|
securityInfos = bsSecurityStore.getAllByEndpoint(request.getEndpointName());
|
||||||
}
|
}
|
||||||
authorized = securityChecker.checkSecurityInfos(request.getEndpointName(), clientIdentity, securityInfos);
|
authorized = securityChecker.checkSecurityInfos(request.getEndpointName(), clientIdentity, securityInfos);
|
||||||
} else {
|
|
||||||
authorized = true;
|
|
||||||
}
|
}
|
||||||
} catch (LwM2MAuthException e) {
|
} catch (LwM2MAuthException e) {
|
||||||
authorized = false;
|
authorized = false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user