com.sun.jmx.snmp.SnmpBadSecurityLevelException Java Examples

The following examples show how to use com.sun.jmx.snmp.SnmpBadSecurityLevelException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SnmpEngineImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #2
Source File: SnmpEngineImpl.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #3
Source File: SnmpEngineImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #4
Source File: SnmpEngineImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #5
Source File: SnmpEngineImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #6
Source File: SnmpEngineImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #7
Source File: SnmpEngineImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #8
Source File: SnmpEngineImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #9
Source File: SnmpEngineImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #10
Source File: SnmpEngineImpl.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #11
Source File: SnmpEngineImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #12
Source File: SnmpEngineImpl.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #13
Source File: SnmpEngineImpl.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #14
Source File: SnmpEngineImpl.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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!!!");
        }
}
 
Example #15
Source File: SnmpIncomingRequest.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #16
Source File: SnmpIncomingRequest.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #17
Source File: SnmpIncomingRequest.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #18
Source File: SnmpIncomingRequest.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #19
Source File: SnmpIncomingRequest.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #20
Source File: SnmpIncomingRequest.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #21
Source File: SnmpIncomingRequest.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #22
Source File: SnmpIncomingRequest.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #23
Source File: SnmpIncomingRequest.java    From jdk1.8-source-analysis with Apache License 2.0 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #24
Source File: SnmpIncomingRequest.java    From JDKSourceCode1.8 with MIT License 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #25
Source File: SnmpIncomingRequest.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #26
Source File: SnmpIncomingRequest.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #27
Source File: SnmpIncomingRequest.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #28
Source File: SnmpIncomingRequest.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Decodes the specified bytes and initializes the request with the incoming message.
 *
 * @param inputBytes The bytes to be decoded.
 *
 * @exception SnmpStatusException If the specified bytes are not a valid encoding or if the security applied to this request failed and no report is to be sent (typically trap PDU).
 */
public void decodeMessage(byte[] inputBytes,
                          int byteCount,
                          InetAddress address,
                          int port)
    throws SnmpStatusException, SnmpUnknownSecModelException,
           SnmpBadSecurityLevelException;
 
Example #29
Source File: SnmpOutgoingRequest.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Encodes the message to send and puts the result in the specified byte array.
 *
 * @param outputBytes An array to receive the resulting encoding.
 *
 * @exception ArrayIndexOutOfBoundsException If the result does not fit
 *                                           into the specified array.
 */
public int encodeMessage(byte[] outputBytes)
    throws SnmpStatusException,
           SnmpTooBigException, SnmpSecurityException,
           SnmpUnknownSecModelException, SnmpBadSecurityLevelException;
 
Example #30
Source File: SnmpOutgoingRequest.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Encodes the message to send and puts the result in the specified byte array.
 *
 * @param outputBytes An array to receive the resulting encoding.
 *
 * @exception ArrayIndexOutOfBoundsException If the result does not fit
 *                                           into the specified array.
 */
public int encodeMessage(byte[] outputBytes)
    throws SnmpStatusException,
           SnmpTooBigException, SnmpSecurityException,
           SnmpUnknownSecModelException, SnmpBadSecurityLevelException;