Class StatisticsKeyTool
- java.lang.Object
-
- network.oxalis.statistics.security.StatisticsKeyTool
-
public class StatisticsKeyTool extends Object
Provides various methods for generation, loading and saving private and public keys.- Author:
- steinar Date: 01.05.13 Time: 21:17
-
-
Field Summary
Fields Modifier and Type Field Description static StringASYMMETRIC_KEY_ALGORITHMstatic intMAX_LENGTH_OF_ENCODED_KEYstatic StringOXALIS_STATISTICS_PUBLIC_KEY
-
Constructor Summary
Constructors Constructor Description StatisticsKeyTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublicKeyloadPublicKey(File file)Loads the public key used for encrypting statistical data.PublicKeyloadPublicKeyFromClassPath()The Oxalis statistics public key is supplied as part of the distribution (of course).
-
-
-
Field Detail
-
ASYMMETRIC_KEY_ALGORITHM
public static final String ASYMMETRIC_KEY_ALGORITHM
- See Also:
- Constant Field Values
-
OXALIS_STATISTICS_PUBLIC_KEY
public static final String OXALIS_STATISTICS_PUBLIC_KEY
- See Also:
- Constant Field Values
-
MAX_LENGTH_OF_ENCODED_KEY
public static final int MAX_LENGTH_OF_ENCODED_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadPublicKeyFromClassPath
public PublicKey loadPublicKeyFromClassPath()
The Oxalis statistics public key is supplied as part of the distribution (of course).- Returns:
- the statistics public key
-
-