com.sun.management.snmp
Interface SnmpSecurityParameters

All Known Subinterfaces:
SnmpUsmSecurityParameters

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.1

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

Method Detail

encode

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

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

decode

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

Parameters:
params - Encoded parameters.
Throws:
SnmpStatusException

getPrincipal

String getPrincipal()
Principal coded inside the security parameters.

Returns:
The security principal.

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.