com.outbackinc.services.protocol.snmp.CSM
Class CSMSecurityInfo

java.lang.Object
  |
  +--com.outbackinc.services.protocol.snmp.CSM.CSMSecurityInfo
All Implemented Interfaces:
java.io.Serializable, SnmpSecurityInfo

public class CSMSecurityInfo
extends java.lang.Object
implements SnmpSecurityInfo, java.io.Serializable

The CSMSecurityInfo class implements the SnmpSecurityInfo interface for community-based SNMP versions (SNMPv1/2). A created class may be shared between many SNMPv1/2 SnmpSecureSessions.

See Also:
SnmpSecurityLevels, Serialized Form

Constructor Summary
CSMSecurityInfo(byte[] bReadCommunity, byte[] bWriteCommunity)
          Constructs a security information entity using byte[] arguments.
CSMSecurityInfo(java.lang.String szReadCommunity, java.lang.String szWriteCommunity)
          Deprecated. as of jSNMP v3.1.1 by CSMSecurityInfo(byte[] bReadCommunity, byte[] bWriteCommunity)
 
Method Summary
 java.lang.String getReadCommunity()
          Deprecated. as of jSNMP v3.1.1 by getReadCommunityBytes()
 byte[] getReadCommunityBytes()
          Get the read community.
 byte getSecurityLevel()
          Get the security level.
 int getSecurityModelID()
          Get the ID of the security model.
 java.lang.String getWriteCommunity()
          Deprecated. as of jSNMP v3.1.1 by getWriteCommunityBytes()
 byte[] getWriteCommunityBytes()
          Get the write community.
 boolean supportedBySnmpVersion(int iSnmpVersion)
          Determines if the given SNMP version supports this security info.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSMSecurityInfo

public CSMSecurityInfo(byte[] bReadCommunity,
                       byte[] bWriteCommunity)
                throws java.lang.IllegalArgumentException
Constructs a security information entity using byte[] arguments. This is the preferred constructor when using VMs with non-ASCII encodings.
Parameters:
bReadCommunity - read community
bWriteCommunity - write community
Throws:
java.lang.IllegalArgumentException - if either szReadCommunity or szWriteCommunity are null

CSMSecurityInfo

public CSMSecurityInfo(java.lang.String szReadCommunity,
                       java.lang.String szWriteCommunity)
                throws java.lang.IllegalArgumentException
Deprecated. as of jSNMP v3.1.1 by CSMSecurityInfo(byte[] bReadCommunity, byte[] bWriteCommunity)

Constructs a security information entity.
Parameters:
szReadCommunity - read community
szWriteCommunity - write community
Throws:
java.lang.IllegalArgumentException - if either szReadCommunity or szWriteCommunity are null
Method Detail

getSecurityModelID

public int getSecurityModelID()
Description copied from interface: SnmpSecurityInfo
Get the ID of the security model. CSM and USM values are defined in the SnmpSecurityModel interface. New security model class IDs should not conflict and be greater than 255.
Specified by:
getSecurityModelID in interface SnmpSecurityInfo
Following copied from interface: com.outbackinc.services.protocol.snmp.SnmpSecurityInfo
Returns:
security model ID

getSecurityLevel

public byte getSecurityLevel()
Description copied from interface: SnmpSecurityInfo
Get the security level. Possible values are defined in SnmpSecurityLevels.
Specified by:
getSecurityLevel in interface SnmpSecurityInfo
Returns:
SnmpSecurityLevels.noAuthNoPriv
See Also:
SnmpSecurityLevels

getReadCommunity

public java.lang.String getReadCommunity()
Deprecated. as of jSNMP v3.1.1 by getReadCommunityBytes()

Get the read community.
Returns:
read community

getWriteCommunity

public java.lang.String getWriteCommunity()
Deprecated. as of jSNMP v3.1.1 by getWriteCommunityBytes()

Get the write community.
Returns:
write community

getReadCommunityBytes

public byte[] getReadCommunityBytes()
Get the read community. This is the preferred method when using VMs with non-ASCII encodings.
Returns:
read community

getWriteCommunityBytes

public byte[] getWriteCommunityBytes()
Get the write community. This is the preferred method when using VMs with non-ASCII encodings.
Returns:
write community

supportedBySnmpVersion

public boolean supportedBySnmpVersion(int iSnmpVersion)
Description copied from interface: SnmpSecurityInfo
Determines if the given SNMP version supports this security info.
Specified by:
supportedBySnmpVersion in interface SnmpSecurityInfo
Returns:
true if the SNMP version is SnmpConstants.SNMP_VERSION_1 or SnmpConstants.SNMP_VERSION_2
See Also:
SnmpConstants


Home  Services  Products  Purchase  Contact Us  About Us  Legal  Ceramics
Copyright © 2003-2008 jSNMP Enterprises All rights reserved.