Saturday, April 4, 2015



SnmpBadSecurityLevelException is described in the javadoc comments as:

This exception is thrown when an incorrect security level is handled.

This API is a Sun Microsystems internal API and is subject to change without notice.

since: 1.5

Where is this exception thrown?

Following, is a list of exception messages cross-referenced to the source code responsible for throwing them. Click on the method link to view the code and see how the exception is thrown.

How is this exception thrown?

The following sub-sections identify where this exception is thrown, and how (or why) the code is throwing the exception.

Any source code quoted in this section is subject to the Java Research License unless stated otherwise.


     * Checks the passed msg flags according to the rules specified in RFC 2572.
     * @param msgFlags The msg flags.
public static void checkSecurityLevel(byte msgFlags) throws SnmpBadSecurityLevelException {
    int secLevel = msgFlags & SnmpDefinitions.authPriv;
    if ((secLevel & SnmpDefinitions.privMask) != 0) if ((secLevel & SnmpDefinitions.authMask) == 0) {
        throw new SnmpBadSecurityLevelException('Security level:' + ' noAuthPriv!!!');

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at:

No comments:

Post a Comment