public class CipherSuite extends Object
| Constructor and Description |
|---|
CipherSuite() |
| Modifier and Type | Method and Description |
|---|---|
static IAsymmetricCipherSuite |
get(AsymmetricCipher id)
Return the cipher suite implementation for the given ID.
|
static IAsymmetricCipherSuite |
get(PublicKey key)
Return the cipher suite implementation for the given key.
|
static ISymmetricCipherSuite |
get(SecretKey key)
Return the cipher suite implementation for the given ID.
|
static ISymmetricCipherSuite |
get(SymmetricCipher id)
Return the cipher suite implementation for the given ID.
|
static List<IAsymmetricCipherSuite> |
getAllAsymetricCipherSuites() |
static List<ISymmetricCipherSuite> |
getAllSymetricCipherSuites() |
static IAsymmetricCipherSuite |
getAsymmetricCipher()
Return the default Asymmetric cipher suite.
|
static ISymmetricCipherSuite |
getSymmetricCipher()
Return the default Symmetric cipher suite.
|
@Nonnull public static IAsymmetricCipherSuite get(PublicKey key) throws UnknownCipherSuiteException
key - A PublicKeyUnknownCipherSuiteException - If the given key does not match any known CipherSuite@Nonnull public static ISymmetricCipherSuite get(SecretKey key) throws UnknownCipherSuiteException
key - A SecretKeyUnknownCipherSuiteException - if the key does not match any cipher suite@Nonnull public static IAsymmetricCipherSuite get(AsymmetricCipher id)
id - The ID of the required cipher suite.@Nonnull public static ISymmetricCipherSuite get(SymmetricCipher id)
id - The ID of the required cipher suite.@Nonnull public static IAsymmetricCipherSuite getAsymmetricCipher()
@Nonnull public static ISymmetricCipherSuite getSymmetricCipher()
public static List<IAsymmetricCipherSuite> getAllAsymetricCipherSuites()
public static List<ISymmetricCipherSuite> getAllSymetricCipherSuites()
Copyright © 2018 Symphony Software Foundation. All rights reserved.