com.jrockit.mc.rjmx.security
Interface IPasswordProvider


public interface IPasswordProvider

Interface for providers of passwords for IConnectionDescriptor.

Author:
Marcus Hirt

Method Summary
 java.lang.String getPassword(IConnectionDescriptor descriptor)
          Returns the password for a certain descriptor.
 

Method Detail

getPassword

java.lang.String getPassword(IConnectionDescriptor descriptor)
                             throws com.jrockit.mc.common.security.SecurityException,
                                    java.lang.IllegalArgumentException
Returns the password for a certain descriptor.

Parameters:
descriptor - the descriptor for which to get the password.
Returns:
the clear text password, or null if no password exist.
Throws:
com.jrockit.mc.common.security.SecurityException - if something went wrong when decoding the password.
java.lang.IllegalArgumentException - if the provider does not support providing a password for the particular IConnectionDescriptor.


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.