public class Keys extends Object
Modifier and Type | Method and Description |
---|---|
static PrivateKey |
getEncryptionPrivateKey(XdiContext<?> xdiContext)
Given a context, get the encryption private key.
|
static PublicKey |
getEncryptionPublicKey(XdiContext<?> xdiContext)
Given a context, get the encryption public key.
|
static SecretKey |
getEncryptionSecretKey(XdiContext<?> xdiContext)
Given a context, get the encryption secret key.
|
static String |
getKeyAlgorithm(XDIAddress dataTypeXDIAddress) |
static Integer |
getKeyLength(XDIAddress dataTypeXDIAddress) |
static PrivateKey |
getPrivateKey(XdiContext<?> xdiContext,
XDIAddress privateKeyRelativeAddress)
Given a context, get a private key.
|
static PublicKey |
getPublicKey(XdiContext<?> xdiContext,
XDIAddress publicKeyRelativeAddress)
Given a context, get a public key.
|
static SecretKey |
getSecretKey(XdiContext<?> xdiContext,
XDIAddress secretKeyRelativeAddress)
Given a context, get a secret key.
|
static PrivateKey |
getSignaturePrivateKey(XdiContext<?> xdiContext)
Given a context, get the signature private key.
|
static PublicKey |
getSignaturePublicKey(XdiContext<?> xdiContext)
Given a context, get the signature public key.
|
static SecretKey |
getSignatureSecretKey(XdiContext<?> xdiContext)
Given a context, get the signature secret key.
|
static PrivateKey |
privateKeyFromPrivateKeyString(String privateKeyString) |
static PublicKey |
publicKeyFromPublicKeyString(String publicKeyString) |
static SecretKey |
secretKeyFromSecretKeyString(String secretKeyString) |
public static PublicKey getSignaturePublicKey(XdiContext<?> xdiContext) throws GeneralSecurityException
graph
- The graph.GeneralSecurityException
public static PublicKey getEncryptionPublicKey(XdiContext<?> xdiContext) throws GeneralSecurityException
graph
- The graph.GeneralSecurityException
public static PrivateKey getSignaturePrivateKey(XdiContext<?> xdiContext) throws GeneralSecurityException
graph
- The graph.GeneralSecurityException
public static PrivateKey getEncryptionPrivateKey(XdiContext<?> xdiContext) throws GeneralSecurityException
graph
- The graph.GeneralSecurityException
public static SecretKey getSignatureSecretKey(XdiContext<?> xdiContext) throws GeneralSecurityException
graph
- The graph.GeneralSecurityException
public static SecretKey getEncryptionSecretKey(XdiContext<?> xdiContext) throws GeneralSecurityException
graph
- The graph.GeneralSecurityException
public static PublicKey getPublicKey(XdiContext<?> xdiContext, XDIAddress publicKeyRelativeAddress) throws GeneralSecurityException
graph
- The graph.GeneralSecurityException
public static PrivateKey getPrivateKey(XdiContext<?> xdiContext, XDIAddress privateKeyRelativeAddress) throws GeneralSecurityException
graph
- The graph.GeneralSecurityException
public static SecretKey getSecretKey(XdiContext<?> xdiContext, XDIAddress secretKeyRelativeAddress) throws GeneralSecurityException
graph
- The graph.GeneralSecurityException
public static PublicKey publicKeyFromPublicKeyString(String publicKeyString) throws GeneralSecurityException
GeneralSecurityException
public static PrivateKey privateKeyFromPrivateKeyString(String privateKeyString) throws GeneralSecurityException
GeneralSecurityException
public static SecretKey secretKeyFromSecretKeyString(String secretKeyString) throws GeneralSecurityException
GeneralSecurityException
public static String getKeyAlgorithm(XDIAddress dataTypeXDIAddress)
public static Integer getKeyLength(XDIAddress dataTypeXDIAddress)
Copyright © 2017. All rights reserved.