org.eclipse.higgins.as.util
Class IdASHinUtil

java.lang.Object
  extended by org.eclipse.higgins.as.util.IdASHinUtil

public class IdASHinUtil
extends Object

This class contains methods for creating HINs from simple and complex values


Field Summary
static String ALGORITHM_DEFAULT
           
static String ALGORITHM_MD5
           
static String ALGORITHM_SHA1
           
static String ALGORITHM_SHA256
           
static XRI3Segment XRI_HIN
           
 
Method Summary
static String algorithmToSubSegment(String algorithm)
           
static String hashhex(String string, String algorithm)
           
static boolean isHin(XRI3Segment xri)
           
static String makeEntityValueString(org.eclipse.higgins.idas.api.IEntity entity)
           
static XRI3Segment makeHin(org.eclipse.higgins.idas.api.IValue value, String algorithm)
           
static String makeSimpleValueString(org.eclipse.higgins.idas.api.ISimpleValue simpleValue)
           
static String makeString(org.eclipse.higgins.idas.api.IValue value)
           
static String segmentToAlgorithm(XRI3Segment xri)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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

makeEntityValueString

public static String makeEntityValueString(org.eclipse.higgins.idas.api.IEntity entity)
                                    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)