package com.novell.admin.ndssnapins.loginMethods.CPassword;
import java.util.*;
import com.novell.admin.common.exceptions.*;
public class CPassword
{
public final static String NAME = new String("com.novell.admin.ndssnapins.loginMethods.CPassword.CPassword");
final static ResourceBundle res = ResourceBundle.getBundle("com.novell.admin.ndssnapins.loginMethods.CPassword.CPasswordResourceBundle");
private static final int MISSING_RESOURCE = 1;
public final static byte ClearTextByte[] = {1};
public final static String ClearTextID = new String(ClearTextByte);
public final static byte AllowData[] = {1};
public final static byte DoNotAllowData[] = {0};
public final static int AllowDataLen = 1;
public final static int MethodID[] = {1};
public final static int MethodIDLen = 4;
public final static String AllowTag = "Clear Allowed";
public final static String SecretTag = "Clear Password";
public final static String
CPassword_METHOD_TAB = "CPassword_METHOD_TAB",
CPassword_SNAPIN_NAME = "CPassword_SNAPIN_NAME",
CPassword_MENU_NAME = "CPassword_MENU_NAME",
CPassword_METHOD_SNAPIN_DESCRIPTION = "CPassword_METHOD_SNAPIN_DESCRIPTION",
CPassword_USER_SNAPIN_DESCRIPTION = "CPassword_USER_SNAPIN_DESCRIPTION",
CPassword_ENTRY_ERR_TITLE = "CPassword_ENTRY_ERR_TITLE",
CPassword_BOP_ERR_MSG = "CPassword_BOP_ERR_MSG",
CPassword_PLC_ERR_MSG = "CPassword_PLC_ERR_MSG",
CPassword_DLC_ERR_MSG = "CPassword_DLC_ERR_MSG",
CPassword_UNEQUAL_ERR_MSG = "CPassword_UNEQUAL_ERR_MSG",
CPassword_LOAD_LIBRARY_FAILED_TITLE = "CPassword_LOAD_LIBRARY_FAILED_TITLE",
CPassword_LOAD_LIBRARY_FAILED_MESSAGE = "CPassword_LOAD_LIBRARY_FAILED_MESSAGE",
CPassword_INSTRUCTIONS = "CPassword_INSTRUCTIONS",
CPassword_LABEL = "CPassword_LABEL",
CPassword_ENTRY_LABEL = "CPassword_ENTRY_LABEL",
CPassword_CONFIRM_LABEL = "CPassword_CONFIRM_LABEL",
CPassword_ALLOW_LABEL = "CPassword_ALLOW_LABEL",
CPassword_NOT_SUPPORTED_LABEL = "CPassword_NOT_SUPPORTED_LABEL",
CPassword_NO_RIGHTS_LABEL = "CPassword_NO_RIGHTS_LABEL",
LAST_STRING = "LAST_STRING"
;
public static String getString(String key)
{
String str = new String();
try
{
str = res.getString(key);
}
catch (MissingResourceException e)
{
throw new AdminError(MISSING_RESOURCE, "com.novell.admin.ndssnapins.classes.nmas.nmas is missing string resource with key = " + key );
}
return str;
}
public static Object getObject(String objKey)
{
Object obj = null;
try
{
obj = res.getObject(objKey);
}
catch (MissingResourceException e)
{
throw new AdminError( MISSING_RESOURCE, "com.novell.admin.ndssnapins.classes.nmas.nmas" );
}
return obj;
}
}