|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatavism.server.util.SecureTokenUtil
public class SecureTokenUtil
Some utility functions for key generation and encoding. They are all static and objects of this class should never be instantiated.
Method Summary | |
---|---|
static byte[] |
encodeDomainKey(long keyId,
javax.crypto.SecretKey key)
Encode a key as a byte array for transmission over a network connection. |
static byte[] |
encodeMasterPrivateKey(long keyId,
java.security.PrivateKey privKey)
Encode a master private key for storage. |
static byte[] |
encodeMasterPublicKey(long keyId,
java.security.PublicKey pubKey)
Encode a master public key for storage. |
static javax.crypto.SecretKey |
generateDomainKey()
Generate a key to be used as the domain key. |
static java.security.KeyPair |
generateMasterKeyPair()
Generate a public/private keypair to be used as a master key. |
static void |
main(java.lang.String[] args)
Generate a new master key with the id specified in args |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static javax.crypto.SecretKey generateDomainKey()
public static byte[] encodeDomainKey(long keyId, javax.crypto.SecretKey key)
public static java.security.KeyPair generateMasterKeyPair()
public static byte[] encodeMasterPrivateKey(long keyId, java.security.PrivateKey privKey)
public static byte[] encodeMasterPublicKey(long keyId, java.security.PublicKey pubKey)
public static void main(java.lang.String[] args)
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |