Package com.netscape.cmsutil.util
Class Keyring
- java.lang.Object
-
- com.netscape.cmsutil.util.Keyring
-
public class Keyring extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Keyring()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
getKeyID(java.lang.String keyName)
Get Key ID from keynamestatic java.lang.String
getPassword(java.lang.String keyName, java.lang.String output_format)
Get password from keyring
-
-
-
Method Detail
-
getKeyID
public static long getKeyID(java.lang.String keyName)
Get Key ID from keyname- Parameters:
keyName
- Name of the key- Returns:
- Key ID
-
getPassword
public static java.lang.String getPassword(java.lang.String keyName, java.lang.String output_format) throws java.lang.IllegalArgumentException
Get password from keyring- Parameters:
keyName
- Name of the keyoutput_format
- Output format- Returns:
- Value of the key available in keyring
- Throws:
java.lang.IllegalArgumentException
-
-