javax.management.snmp
Interface SnmpSecurityParameters

All Known Subinterfaces:
SnmpUsmSecurityParameters

Deprecated. Use package com.sun.management.snmp in preference to classes in this package. This class may be removed in a future version of Java DMK.

public interface SnmpSecurityParameters

Security parameters are security model dependent. Every security parameters class wishing to be passed to a security model must implement this marker interface. This interface has to be implemented when developing customized security models.

Since:
Java DMK 5.0

Method Summary
 void decode(byte[] params)
          Deprecated. BER decoding of security parameters.
 int encode(byte[] outputBytes)
          Deprecated. BER encoding of security parameters.
 String getPrincipal()
          Deprecated. Principal coded inside the security parameters.
 

Method Detail

encode

public int encode(byte[] outputBytes)
           throws SnmpTooBigException
Deprecated. 
BER encoding of security parameters.

Parameters:
outputBytes - Array to fill.
Returns:
Encoded parameters length.
Throws:
SnmpTooBigException

decode

public void decode(byte[] params)
            throws SnmpStatusException
Deprecated. 
BER decoding of security parameters.

Parameters:
params - Encoded parameters.
Throws:
SnmpStatusException

getPrincipal

public String getPrincipal()
Deprecated. 
Principal coded inside the security parameters.

Returns:
The security principal.

FCS Release
jdmk-5_1-b34.1 2005.02.10_16:46:09_MET

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