
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.GeneralSecurityExceptionpublic static PublicKey getEncryptionPublicKey(XdiContext<?> xdiContext) throws GeneralSecurityException
graph - The graph.GeneralSecurityExceptionpublic static PrivateKey getSignaturePrivateKey(XdiContext<?> xdiContext) throws GeneralSecurityException
graph - The graph.GeneralSecurityExceptionpublic static PrivateKey getEncryptionPrivateKey(XdiContext<?> xdiContext) throws GeneralSecurityException
graph - The graph.GeneralSecurityExceptionpublic static SecretKey getSignatureSecretKey(XdiContext<?> xdiContext) throws GeneralSecurityException
graph - The graph.GeneralSecurityExceptionpublic static SecretKey getEncryptionSecretKey(XdiContext<?> xdiContext) throws GeneralSecurityException
graph - The graph.GeneralSecurityExceptionpublic static PublicKey getPublicKey(XdiContext<?> xdiContext, XDIAddress publicKeyRelativeAddress) throws GeneralSecurityException
graph - The graph.GeneralSecurityExceptionpublic static PrivateKey getPrivateKey(XdiContext<?> xdiContext, XDIAddress privateKeyRelativeAddress) throws GeneralSecurityException
graph - The graph.GeneralSecurityExceptionpublic static SecretKey getSecretKey(XdiContext<?> xdiContext, XDIAddress secretKeyRelativeAddress) throws GeneralSecurityException
graph - The graph.GeneralSecurityExceptionpublic static PublicKey publicKeyFromPublicKeyString(String publicKeyString) throws GeneralSecurityException
GeneralSecurityExceptionpublic static PrivateKey privateKeyFromPrivateKeyString(String privateKeyString) throws GeneralSecurityException
GeneralSecurityExceptionpublic static SecretKey secretKeyFromSecretKeyString(String secretKeyString) throws GeneralSecurityException
GeneralSecurityExceptionpublic static String getKeyAlgorithm(XDIAddress dataTypeXDIAddress)
public static Integer getKeyLength(XDIAddress dataTypeXDIAddress)
Copyright © 2017. All rights reserved.