Package de.mhus.lib.core.crypt
Class CryptedString
- java.lang.Object
-
- de.mhus.lib.core.util.SecureString
-
- de.mhus.lib.core.crypt.CryptedString
-
- All Implemented Interfaces:
Externalizable,Serializable
public class CryptedString extends SecureString implements Externalizable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.mhus.lib.core.util.SecureString
data, length
-
-
Constructor Summary
Constructors Constructor Description CryptedString()CryptedString(String pubKey, String secret)CryptedString(KeyPair key, String secret)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecureStringcreate(String pubKey, String secret)StringgetPublicKeyMd5()voidreadExternal(ObjectInput in)Stringvalue()static Stringvalue(SecureString string, KeyPair key)Stringvalue(String privKey)Stringvalue(KeyPair key)voidwriteExternal(ObjectOutput out)-
Methods inherited from class de.mhus.lib.core.util.SecureString
isNull, length, toString
-
-
-
-
Method Detail
-
getPublicKeyMd5
public String getPublicKeyMd5()
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classSecureString- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSecureString- Throws:
IOExceptionClassNotFoundException
-
value
public String value()
- Overrides:
valuein classSecureString
-
create
public static SecureString create(String pubKey, String secret)
-
value
public static String value(SecureString string, KeyPair key)
-
-