org.eclipse.higgins.idas.cp.xdi.util
Class IdASHinUtil
java.lang.Object
org.eclipse.higgins.idas.cp.xdi.util.IdASHinUtil
public class IdASHinUtil
- extends Object
This class contains methods for creating HINs from simple and complex values
XRI_HIN
public static final XRI3Segment XRI_HIN
ALGORITHM_SHA1
public static final String ALGORITHM_SHA1
- See Also:
- Constant Field Values
ALGORITHM_SHA256
public static final String ALGORITHM_SHA256
- See Also:
- Constant Field Values
ALGORITHM_MD5
public static final String ALGORITHM_MD5
- See Also:
- Constant Field Values
ALGORITHM_DEFAULT
public static final String ALGORITHM_DEFAULT
- See Also:
- Constant Field Values
makeHin
public static XRI3Segment makeHin(org.eclipse.higgins.idas.api.IValue value,
String algorithm)
throws org.eclipse.higgins.idas.api.IdASException
- Throws:
org.eclipse.higgins.idas.api.IdASException
makeString
public static String makeString(org.eclipse.higgins.idas.api.IValue value)
throws org.eclipse.higgins.idas.api.IdASException
- Throws:
org.eclipse.higgins.idas.api.IdASException
makeSimpleValueString
public static String makeSimpleValueString(org.eclipse.higgins.idas.api.ISimpleValue simpleValue)
throws org.eclipse.higgins.idas.api.IdASException
- Throws:
org.eclipse.higgins.idas.api.IdASException
makeComplexValueString
public static String makeComplexValueString(org.eclipse.higgins.idas.api.IEntity complexValue)
throws org.eclipse.higgins.idas.api.IdASException
- Throws:
org.eclipse.higgins.idas.api.IdASException
hashhex
public static String hashhex(String string,
String algorithm)
algorithmToSubSegment
public static String algorithmToSubSegment(String algorithm)
segmentToAlgorithm
public static String segmentToAlgorithm(XRI3Segment xri)
isHin
public static boolean isHin(XRI3Segment xri)