com.sun.management.snmp.usm.usmmib
Class UsmUserEntryImpl

java.lang.Object
  extended by com.sun.management.snmp.usm.usmmib.UsmUserEntry
      extended by com.sun.management.snmp.usm.usmmib.UsmUserEntryImpl
All Implemented Interfaces:
UsmUserEntryMBean, Serializable

public class UsmUserEntryImpl
extends UsmUserEntry

The class is used for implementing the "UsmUserEntry" group. The group is defined with the following oid: 1.3.6.1.6.3.15.1.2.2.1. This entry is tied with a SnmpUsmSecureUser where the configuration is stored. Every call made on the entry are forwarded to the secure user.

Since:
Java DMK 5.1
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.management.snmp.usm.usmmib.UsmUserEntry
UsmUserAuthKeyChange, UsmUserAuthProtocol, UsmUserCloneFrom, UsmUserEngineID, UsmUserName, UsmUserOwnAuthKeyChange, UsmUserOwnPrivKeyChange, UsmUserPrivKeyChange, UsmUserPrivProtocol, UsmUserPublic, UsmUserSecurityName, UsmUserStatus, UsmUserStorageType
 
Constructor Summary
UsmUserEntryImpl(SnmpEngine engine, SnmpMib mib, SnmpUsmLcd lcd, SnmpUsmSecureUser user, TableUsmUserTableImpl table)
           
 
Method Summary
 void addInMBeanServer(MBeanServer server)
          Register this entry in the MBean server.
 void checkUsmUserAuthKeyChange(Byte[] x)
          Setter for the "UsmUserAuthKeyChange" variable.
 void checkUsmUserAuthProtocol(String x)
          Checker for the "UsmUserAuthProtocol" variable.
 void checkUsmUserCloneFrom(String x)
          Checker for the "UsmUserCloneFrom" variable.
 void checkUsmUserPrivKeyChange(Byte[] x)
          Setter for the "UsmUserPrivKeyChange" variable.
 void checkUsmUserPrivProtocol(String x)
          Checker for the "UsmUserPrivProtocol" variable.
 void checkUsmUserStatus(EnumUsmUserStatus x)
          Checker for the "UsmUserStatus" variable.
 void checkUsmUserStorageType(EnumUsmUserStorageType x)
          Checker for the "UsmUserStorageType" variable.
protected  ObjectName createObjectName()
          This method is called when the UsmUseEntryImpl is added or removed from the MBeanServer.
 Byte[] getUsmUserAuthKeyChange()
          Getter for the "UsmUserAuthKeyChange" variable.
 String getUsmUserAuthProtocol()
          Getter for the "UsmUserAuthProtocol" variable.
 String getUsmUserCloneFrom()
          Getter for the "UsmUserCloneFrom" variable.
 Byte[] getUsmUserEngineID()
          Getter for the "UsmUserEngineId" variable.
 String getUsmUserName()
          Getter for the "UsmUserName" variable.
 Byte[] getUsmUserOwnAuthKeyChange()
          Getter for the "UsmUserOwnAuthKeyChange" variable.
 Byte[] getUsmUserOwnPrivKeyChange()
          Getter for the "UsmUserOwnPrivKeyChange" variable.
 Byte[] getUsmUserPrivKeyChange()
          Getter for the "UsmUserPrivKeyChange" variable.
 String getUsmUserPrivProtocol()
          Getter for the "UsmUserPrivProtocol" variable.
 String getUsmUserSecurityName()
          Getter for the "UsmUserSecurityName" variable.
 EnumUsmUserStorageType getUsmUserStorageType()
          Getter for the "UsmUserStorageType" variable.
 void removeFromMBeanServer(MBeanServer server)
          Unregister this entry from the MBean server.
 void setUsmUserAuthKeyChange(Byte[] x)
          Setter for the "UsmUserAuthKeyChange" variable.
 void setUsmUserAuthProtocol(String x)
          Setter for the "UsmUserAuthProtocol" variable.
 void setUsmUserCloneFrom(String x)
          Setter for the "UsmUserCloneFrom" variable.
 void setUsmUserOwnAuthKeyChange(Byte[] x)
          Setter for the "UsmUserOwnAuthKeyChange" variable.
 void setUsmUserOwnPrivKeyChange(Byte[] x)
          Setter for the "UsmUserOwnPrivKeyChange" variable.
 void setUsmUserPrivKeyChange(Byte[] x)
          Setter for the "UsmUserPrivKeyChange" variable.
 void setUsmUserPrivProtocol(String x)
          Setter for the "UsmUserPrivProtocol" variable.
 void setUsmUserStatus(EnumUsmUserStatus x)
          Setter for the "UsmUserStatus" variable.
 void setUsmUserStorageType(EnumUsmUserStorageType x)
          Setter for the "UsmUserStorageType" variable.
 
Methods inherited from class com.sun.management.snmp.usm.usmmib.UsmUserEntry
checkUsmUserOwnAuthKeyChange, checkUsmUserOwnPrivKeyChange, checkUsmUserPublic, getUsmUserPublic, getUsmUserStatus, setUsmUserPublic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsmUserEntryImpl

public UsmUserEntryImpl(SnmpEngine engine,
                        SnmpMib mib,
                        SnmpUsmLcd lcd,
                        SnmpUsmSecureUser user,
                        TableUsmUserTableImpl table)
Method Detail

createObjectName

protected ObjectName createObjectName()
                               throws MalformedObjectNameException

This method is called when the UsmUseEntryImpl is added or removed from the MBeanServer. It returns the object name to use when registering the MIB in an MBeanServer. Override this method if you want to change the default name :

+ "/UsmUserTable:" + "engine=" + + ",name=" + .

Throws:
MalformedObjectNameException

addInMBeanServer

public void addInMBeanServer(MBeanServer server)
Register this entry in the MBean server.


removeFromMBeanServer

public void removeFromMBeanServer(MBeanServer server)
Unregister this entry from the MBean server.


getUsmUserSecurityName

public String getUsmUserSecurityName()
                              throws SnmpStatusException
Getter for the "UsmUserSecurityName" variable.

Specified by:
getUsmUserSecurityName in interface UsmUserEntryMBean
Overrides:
getUsmUserSecurityName in class UsmUserEntry
Throws:
SnmpStatusException

getUsmUserPrivKeyChange

public Byte[] getUsmUserPrivKeyChange()
                               throws SnmpStatusException
Getter for the "UsmUserPrivKeyChange" variable.

Specified by:
getUsmUserPrivKeyChange in interface UsmUserEntryMBean
Overrides:
getUsmUserPrivKeyChange in class UsmUserEntry
Throws:
SnmpStatusException

checkUsmUserPrivKeyChange

public void checkUsmUserPrivKeyChange(Byte[] x)
                               throws SnmpStatusException
Setter for the "UsmUserPrivKeyChange" variable.

Specified by:
checkUsmUserPrivKeyChange in interface UsmUserEntryMBean
Overrides:
checkUsmUserPrivKeyChange in class UsmUserEntry
Throws:
SnmpStatusException

setUsmUserPrivKeyChange

public void setUsmUserPrivKeyChange(Byte[] x)
                             throws SnmpStatusException
Setter for the "UsmUserPrivKeyChange" variable.

Specified by:
setUsmUserPrivKeyChange in interface UsmUserEntryMBean
Overrides:
setUsmUserPrivKeyChange in class UsmUserEntry
Throws:
SnmpStatusException

getUsmUserAuthKeyChange

public Byte[] getUsmUserAuthKeyChange()
                               throws SnmpStatusException
Getter for the "UsmUserAuthKeyChange" variable.

Specified by:
getUsmUserAuthKeyChange in interface UsmUserEntryMBean
Overrides:
getUsmUserAuthKeyChange in class UsmUserEntry
Throws:
SnmpStatusException

checkUsmUserAuthKeyChange

public void checkUsmUserAuthKeyChange(Byte[] x)
                               throws SnmpStatusException
Setter for the "UsmUserAuthKeyChange" variable.

Specified by:
checkUsmUserAuthKeyChange in interface UsmUserEntryMBean
Overrides:
checkUsmUserAuthKeyChange in class UsmUserEntry
Throws:
SnmpStatusException

setUsmUserAuthKeyChange

public void setUsmUserAuthKeyChange(Byte[] x)
                             throws SnmpStatusException
Setter for the "UsmUserAuthKeyChange" variable.

Specified by:
setUsmUserAuthKeyChange in interface UsmUserEntryMBean
Overrides:
setUsmUserAuthKeyChange in class UsmUserEntry
Throws:
SnmpStatusException

setUsmUserOwnPrivKeyChange

public void setUsmUserOwnPrivKeyChange(Byte[] x)
                                throws SnmpStatusException
Setter for the "UsmUserOwnPrivKeyChange" variable. All checks have been done in the UsmUserEntryMeta.

Specified by:
setUsmUserOwnPrivKeyChange in interface UsmUserEntryMBean
Overrides:
setUsmUserOwnPrivKeyChange in class UsmUserEntry
Throws:
SnmpStatusException

getUsmUserOwnPrivKeyChange

public Byte[] getUsmUserOwnPrivKeyChange()
                                  throws SnmpStatusException
Getter for the "UsmUserOwnPrivKeyChange" variable.

Specified by:
getUsmUserOwnPrivKeyChange in interface UsmUserEntryMBean
Overrides:
getUsmUserOwnPrivKeyChange in class UsmUserEntry
Throws:
SnmpStatusException

getUsmUserOwnAuthKeyChange

public Byte[] getUsmUserOwnAuthKeyChange()
                                  throws SnmpStatusException
Getter for the "UsmUserOwnAuthKeyChange" variable.

Specified by:
getUsmUserOwnAuthKeyChange in interface UsmUserEntryMBean
Overrides:
getUsmUserOwnAuthKeyChange in class UsmUserEntry
Throws:
SnmpStatusException

setUsmUserOwnAuthKeyChange

public void setUsmUserOwnAuthKeyChange(Byte[] x)
                                throws SnmpStatusException
Setter for the "UsmUserOwnAuthKeyChange" variable. All checks have been done in the UsmUserEntryMeta.

Specified by:
setUsmUserOwnAuthKeyChange in interface UsmUserEntryMBean
Overrides:
setUsmUserOwnAuthKeyChange in class UsmUserEntry
Throws:
SnmpStatusException

getUsmUserPrivProtocol

public String getUsmUserPrivProtocol()
                              throws SnmpStatusException
Getter for the "UsmUserPrivProtocol" variable.

Specified by:
getUsmUserPrivProtocol in interface UsmUserEntryMBean
Overrides:
getUsmUserPrivProtocol in class UsmUserEntry
Throws:
SnmpStatusException

setUsmUserPrivProtocol

public void setUsmUserPrivProtocol(String x)
                            throws SnmpStatusException
Setter for the "UsmUserPrivProtocol" variable.

Specified by:
setUsmUserPrivProtocol in interface UsmUserEntryMBean
Overrides:
setUsmUserPrivProtocol in class UsmUserEntry
Throws:
SnmpStatusException

checkUsmUserPrivProtocol

public void checkUsmUserPrivProtocol(String x)
                              throws SnmpStatusException
Checker for the "UsmUserPrivProtocol" variable.

Specified by:
checkUsmUserPrivProtocol in interface UsmUserEntryMBean
Overrides:
checkUsmUserPrivProtocol in class UsmUserEntry
Throws:
SnmpStatusException

getUsmUserAuthProtocol

public String getUsmUserAuthProtocol()
                              throws SnmpStatusException
Getter for the "UsmUserAuthProtocol" variable.

Specified by:
getUsmUserAuthProtocol in interface UsmUserEntryMBean
Overrides:
getUsmUserAuthProtocol in class UsmUserEntry
Throws:
SnmpStatusException

setUsmUserAuthProtocol

public void setUsmUserAuthProtocol(String x)
                            throws SnmpStatusException
Setter for the "UsmUserAuthProtocol" variable.

Specified by:
setUsmUserAuthProtocol in interface UsmUserEntryMBean
Overrides:
setUsmUserAuthProtocol in class UsmUserEntry
Throws:
SnmpStatusException

checkUsmUserAuthProtocol

public void checkUsmUserAuthProtocol(String x)
                              throws SnmpStatusException
Checker for the "UsmUserAuthProtocol" variable.

Specified by:
checkUsmUserAuthProtocol in interface UsmUserEntryMBean
Overrides:
checkUsmUserAuthProtocol in class UsmUserEntry
Throws:
SnmpStatusException

getUsmUserStorageType

public EnumUsmUserStorageType getUsmUserStorageType()
                                             throws SnmpStatusException
Getter for the "UsmUserStorageType" variable.

Specified by:
getUsmUserStorageType in interface UsmUserEntryMBean
Overrides:
getUsmUserStorageType in class UsmUserEntry
Throws:
SnmpStatusException

setUsmUserStorageType

public void setUsmUserStorageType(EnumUsmUserStorageType x)
                           throws SnmpStatusException
Setter for the "UsmUserStorageType" variable.

Specified by:
setUsmUserStorageType in interface UsmUserEntryMBean
Overrides:
setUsmUserStorageType in class UsmUserEntry
Throws:
SnmpStatusException

checkUsmUserStorageType

public void checkUsmUserStorageType(EnumUsmUserStorageType x)
                             throws SnmpStatusException
Checker for the "UsmUserStorageType" variable.

Specified by:
checkUsmUserStorageType in interface UsmUserEntryMBean
Overrides:
checkUsmUserStorageType in class UsmUserEntry
Throws:
SnmpStatusException

getUsmUserEngineID

public Byte[] getUsmUserEngineID()
                          throws SnmpStatusException
Getter for the "UsmUserEngineId" variable.

Specified by:
getUsmUserEngineID in interface UsmUserEntryMBean
Overrides:
getUsmUserEngineID in class UsmUserEntry
Throws:
SnmpStatusException

getUsmUserName

public String getUsmUserName()
                      throws SnmpStatusException
Getter for the "UsmUserName" variable.

Specified by:
getUsmUserName in interface UsmUserEntryMBean
Overrides:
getUsmUserName in class UsmUserEntry
Throws:
SnmpStatusException

getUsmUserCloneFrom

public String getUsmUserCloneFrom()
                           throws SnmpStatusException
Getter for the "UsmUserCloneFrom" variable.

Specified by:
getUsmUserCloneFrom in interface UsmUserEntryMBean
Overrides:
getUsmUserCloneFrom in class UsmUserEntry
Throws:
SnmpStatusException

checkUsmUserCloneFrom

public void checkUsmUserCloneFrom(String x)
                           throws SnmpStatusException
Checker for the "UsmUserCloneFrom" variable.

Specified by:
checkUsmUserCloneFrom in interface UsmUserEntryMBean
Overrides:
checkUsmUserCloneFrom in class UsmUserEntry
Throws:
SnmpStatusException

setUsmUserCloneFrom

public void setUsmUserCloneFrom(String x)
                         throws SnmpStatusException
Setter for the "UsmUserCloneFrom" variable.

Specified by:
setUsmUserCloneFrom in interface UsmUserEntryMBean
Overrides:
setUsmUserCloneFrom in class UsmUserEntry
Throws:
SnmpStatusException

setUsmUserStatus

public void setUsmUserStatus(EnumUsmUserStatus x)
                      throws SnmpStatusException
Setter for the "UsmUserStatus" variable.

Specified by:
setUsmUserStatus in interface UsmUserEntryMBean
Overrides:
setUsmUserStatus in class UsmUserEntry
Throws:
SnmpStatusException

checkUsmUserStatus

public void checkUsmUserStatus(EnumUsmUserStatus x)
                        throws SnmpStatusException
Checker for the "UsmUserStatus" variable.

Specified by:
checkUsmUserStatus in interface UsmUserEntryMBean
Overrides:
checkUsmUserStatus in class UsmUserEntry
Throws:
SnmpStatusException

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.