public class Encryptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Encryptions.MappingXdiAttributeEncryptionIterator |
static class |
Encryptions.NoEncryptionsCopyStrategy |
Modifier and Type | Method and Description |
---|---|
static Encryption<? extends Key,? extends Key> |
createEncryption(ContextNode contextNode,
String keyAlgorithm,
int keyLength,
boolean singleton)
Creates an XDI encryption on a context node.
|
static Iterator<Encryption<? extends Key,? extends Key>> |
getAllEncryptions(Graph graph)
Given a graph, lists all encryptions.
|
static XDIAddress |
getDataTypeXDIAddress(String keyAlgorithm,
int keyLength) |
static ReadOnlyIterator<Encryption<? extends Key,? extends Key>> |
getEncryptions(ContextNode contextNode)
Returns the XDI encryptions on a context node.
|
static String |
getKeyAlgorithm(XDIAddress dataTypeXDIAddress) |
static String |
getKeyAlgorithm(XdiAttribute xdiAttribute) |
static Integer |
getKeyLength(XDIAddress dataTypeXDIAddress) |
static Integer |
getKeyLength(XdiAttribute xdiAttribute) |
public static Iterator<Encryption<? extends Key,? extends Key>> getAllEncryptions(Graph graph)
graph
- The graph.public static Encryption<? extends Key,? extends Key> createEncryption(ContextNode contextNode, String keyAlgorithm, int keyLength, boolean singleton)
public static ReadOnlyIterator<Encryption<? extends Key,? extends Key>> getEncryptions(ContextNode contextNode)
public static String getKeyAlgorithm(XdiAttribute xdiAttribute)
public static String getKeyAlgorithm(XDIAddress dataTypeXDIAddress)
public static Integer getKeyLength(XdiAttribute xdiAttribute)
public static Integer getKeyLength(XDIAddress dataTypeXDIAddress)
public static XDIAddress getDataTypeXDIAddress(String keyAlgorithm, int keyLength)
Copyright © 2017. All rights reserved.