Class SecurityCheck
- java.lang.Object
-
- de.desy.mst.libs.framework.mstapp.mode.SecurityCheck
-
- All Implemented Interfaces:
ISetOpModeProtection
public final class SecurityCheck extends java.lang.Object implements ISetOpModeProtection
triviale Implementation von ISetOpModeProtection gibt immer (je nach Konstruktorwert) immer/nie AccessControlException ohne user Kommunikation zurueck- Version:
- 1.0.0
- Author:
- schuette
-
-
Constructor Summary
Constructors Constructor Description SecurityCheck(boolean neverPass, OpModeListe geschuetzteOpModes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
check()
Deprecated.void
check(OpMode opMode, java.lang.String passwort)
Passed == NoOp else AccessControlExceptionOpModeListe
getGeschuetzteOpModeList()
static SecurityCheck
getNoCheck()
-
-
-
Constructor Detail
-
SecurityCheck
public SecurityCheck(boolean neverPass, OpModeListe geschuetzteOpModes)
- Parameters:
geschuetzteOpModes
- != BBE und enthaelt implementierten ModeneverPass
- == true => check immer mit Exception, sonst nie- Throws:
java.lang.IllegalArgumentException
- sofort für (BBE == geschuetzteOpModes), später falls kein ungeschützter OpMode zugänglich ist
-
-
Method Detail
-
getNoCheck
public static final SecurityCheck getNoCheck()
-
check
@Deprecated public void check() throws java.security.AccessControlException
Deprecated.Description copied from interface:ISetOpModeProtection
use check check(final OpMode opMode, final String passwort) instead- Specified by:
check
in interfaceISetOpModeProtection
- Throws:
java.security.AccessControlException
-
check
public void check(OpMode opMode, java.lang.String passwort)
Description copied from interface:ISetOpModeProtection
Passed == NoOp else AccessControlException- Specified by:
check
in interfaceISetOpModeProtection
-
getGeschuetzteOpModeList
public OpModeListe getGeschuetzteOpModeList()
- Specified by:
getGeschuetzteOpModeList
in interfaceISetOpModeProtection
- Returns:
- Liste aller OpModes, die ein check erfordern
-
-