|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.outbackinc.services.protocol.snmp.USM.USMSecurityInfo
The USMSecurityInfo class implements the SnmpSecurityInfo interface for user-based security model for SNMP versions (SNMPv3). A created class may be shared between many SNMPv3 SnmpSecureSessions.
USMSecurityModel
, Serialized FormField Summary | |
static int |
Auth_MD5
MD5 Authentication scheme |
static int |
Auth_SHA
SHA Authentication scheme |
static int |
Priv_DES
DES Privacy scheme |
Constructor Summary | |
USMSecurityInfo(byte[] bUserName,
byte[] bAuthenticationPassword,
byte[] bPrivacyPassword,
int iAuthenticationScheme,
int iPrivacyScheme,
byte cbSecurityLevel)
Constructs a security information entity. |
|
USMSecurityInfo(java.lang.String szUserName,
java.lang.String szAuthenticationPassword,
java.lang.String szPrivacyPassword,
int iAuthenticationScheme,
int iPrivacyScheme,
byte cbSecurityLevel)
Deprecated. as of jSNMP v3.1.1 by USMSecurityInfo(byte[] bUserName, byte[] bAuthenticationPassword, byte[] bPrivacyPassword, int iAuthenticationScheme, int iPrivacyScheme, byte cbSecurityLevel) |
Method Summary | |
int |
getAuthenticationScheme()
Get the authentication scheme. |
java.lang.String |
getAuthPassword()
Deprecated. as of jSNMP v3.1.1 by getAuthPasswordBytes() |
byte[] |
getAuthPasswordBytes()
Get the authentication password. |
int |
getPrivacyScheme()
Get the privacy scheme |
java.lang.String |
getPrivPassword()
Deprecated. as of jSNMP v3.1.1 by getPrivPasswordBytes() |
byte[] |
getPrivPasswordBytes()
Get the privacy password. |
byte |
getSecurityLevel()
Get the security level. |
int |
getSecurityModelID()
Get the ID of the security model. |
java.lang.String |
getUserName()
Deprecated. as of jSNMP v3.1.1 by getUserNameBytes() |
byte[] |
getUserNameBytes()
Get the user name. |
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 |
Field Detail |
public static final int Auth_SHA
public static final int Auth_MD5
public static final int Priv_DES
Constructor Detail |
public USMSecurityInfo(byte[] bUserName, byte[] bAuthenticationPassword, byte[] bPrivacyPassword, int iAuthenticationScheme, int iPrivacyScheme, byte cbSecurityLevel) throws SnmpSecurityException, java.lang.IllegalArgumentException
bUserName
- user namebAuthenticationPassword
- authentication passwordbPrivacyPassword
- privacy passwordiAuthenticationScheme
- authentication schemeiPrivacyScheme
- privacy schemecbSecurityLevel
- security leveljava.lang.IllegalArgumentException
- if either bUserName, bAuthenticationPassword, or bPrivacyPassword are null or iAuthenticationScheme not USMSecurityInfo.Auth_NONE, USMSecurityInfo.Auth_SHA, or USMSecurityInfo.Auth_MD5 or iPrivacyScheme not USMSecurityInfo.Priv_NONE or USMSecurityInfo.Priv_DES or cbSecurityLevel not SnmpSecurityLevels.noAuthNoPriv, SnmpSecurityLevels.AuthNoPriv, or SnmpSecurityLevels.AuthPrivSnmpSecurityException
- if a MessageDigest algorithm is not available in the package supplied by the security provider or if a particular the provider is requested but is not available in the MessageDigest environmentpublic USMSecurityInfo(java.lang.String szUserName, java.lang.String szAuthenticationPassword, java.lang.String szPrivacyPassword, int iAuthenticationScheme, int iPrivacyScheme, byte cbSecurityLevel) throws SnmpSecurityException, java.lang.IllegalArgumentException
szUserName
- user nameszAuthenticationPassword
- authentication passwordszPrivacyPassword
- privacy passwordiAuthenticationScheme
- authentication schemeiPrivacyScheme
- privacy schemecbSecurityLevel
- security leveljava.lang.IllegalArgumentException
- if either szUserName, szAuthenticationPassword, or szPrivacyPassword are null or iAuthenticationScheme not USMSecurityInfo.Auth_NONE, USMSecurityInfo.Auth_SHA, or USMSecurityInfo.Auth_MD5 or iPrivacyScheme not USMSecurityInfo.Priv_NONE or USMSecurityInfo.Priv_DES or cbSecurityLevel not SnmpSecurityLevels.noAuthNoPriv, SnmpSecurityLevels.AuthNoPriv, or SnmpSecurityLevels.AuthPrivSnmpSecurityException
- if a MessageDigest algorithm is not available in the package supplied by the security provider or if a particular the provider is requested but is not available in the MessageDigest environmentMethod Detail |
public int getSecurityModelID()
SnmpSecurityInfo
getSecurityModelID
in interface SnmpSecurityInfo
com.outbackinc.services.protocol.snmp.SnmpSecurityInfo
public byte getSecurityLevel()
SnmpSecurityInfo
getSecurityLevel
in interface SnmpSecurityInfo
public java.lang.String getUserName()
public java.lang.String getPrivPassword()
public java.lang.String getAuthPassword()
public byte[] getUserNameBytes()
public byte[] getPrivPasswordBytes()
public byte[] getAuthPasswordBytes()
public int getAuthenticationScheme()
public boolean supportedBySnmpVersion(int iSnmpVersion)
SnmpSecurityInfo
supportedBySnmpVersion
in interface SnmpSecurityInfo
SnmpConstants
public int getPrivacyScheme()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Home Services Products Purchase Contact Us About Us Legal Ceramics
Copyright © 2003-2008 jSNMP Enterprises All rights reserved.