|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.util.OwSecretKey
public class OwSecretKey
Represents a static secret key used for encryption.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor Summary | |
---|---|
OwSecretKey()
create a key out of the given serialized byte representation |
Method Summary | |
---|---|
static String |
createJavaCodeKeyDeclaration(String algorithm_p)
dump a java code byte array representation of a secret key |
static byte[] |
createSerializedKey(String algorithm_p)
create a secret key and return it as a serialized byte array |
static String |
getAlgorithm()
get the used algorithm |
Cipher |
getCipher()
get a cipher for the key |
Key |
getKey()
get the key |
static void |
main(String[] args_p)
create a new java m_keybytes member |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OwSecretKey()
Method Detail |
---|
public Key getKey()
Key
public Cipher getCipher() throws NoSuchAlgorithmException, NoSuchPaddingException
Cipher
NoSuchAlgorithmException
NoSuchPaddingException
public static String getAlgorithm()
String
public static byte[] createSerializedKey(String algorithm_p) throws NoSuchAlgorithmException, IOException
algorithm_p
-
NoSuchAlgorithmException
IOException
public static String createJavaCodeKeyDeclaration(String algorithm_p) throws NoSuchAlgorithmException, IOException
algorithm_p
-
NoSuchAlgorithmException
IOException
public static void main(String[] args_p)
args_p
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |