Package com.netscape.cmscore.security
Class PWsdrCache
java.lang.Object
com.netscape.cmscore.security.PWsdrCache
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPWsdrCache
(String pwCache) PWsdrCache
(String pwCache, String pwcTokenname, byte[] keyId, boolean isTool) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
byte[]
static String
base64Encode
(byte[] bytes) void
deleteEntry
(String tag) void
deleteUniqueNamedKey
(String nickName) static boolean
byte[]
byte[]
generateSDRKeyWithNickName
(String nickName) org.mozilla.jss.util.Password
org.mozilla.jss.util.Password
byte[]
getKeyId()
static boolean
isNT()
Checks if this is NT.boolean
pprint()
string2Hashtable
(String cache) void
writePWcache
(String bufs)
-
Field Details
-
logger
public static org.slf4j.Logger logger -
PROP_PWC_TOKEN_NAME
- See Also:
-
PROP_PWC_KEY_ID
- See Also:
-
PROP_PWC_NICKNAME
- See Also:
-
-
Constructor Details
-
PWsdrCache
- Throws:
EBaseException
-
PWsdrCache
public PWsdrCache(String pwCache, String pwcTokenname, byte[] keyId, boolean isTool) throws Exception - Throws:
Exception
-
PWsdrCache
- Throws:
EBaseException
-
-
Method Details
-
getKeyId
public byte[] getKeyId() -
getTokenName
-
deleteUniqueNamedKey
- Throws:
Exception
-
generateSDRKey
- Throws:
Exception
-
generateSDRKeyWithNickName
- Throws:
Exception
-
base64Decode
- Throws:
IOException
-
base64Encode
- Throws:
IOException
-
addEntry
- Throws:
EBaseException
-
addEntry
- Throws:
EBaseException
-
addEntry
public void addEntry(String tag, String pwd, Hashtable<String, String> tagPwds) throws EBaseException- Throws:
EBaseException
-
deleteEntry
- Throws:
EBaseException
-
readPWcache
- Throws:
EBaseException
-
writePWcache
- Throws:
EBaseException
-
hashtable2String
-
string2Hashtable
-
getEntry
-
getEntry
-
isNT
public static boolean isNT()Checks if this is NT. -
exec
- Throws:
IOException
-
pprint
public boolean pprint()
-