|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.gv.egiz.pdfas.algorithmSuite.AlgorithmMapper
Utility for mapping signature and hash algorithms between URI and abbreviation.
Supported algorithms are defined in external resource {@value}
e.g. sha1 <-> http://www.w3.org/2000/09/xmldsig#sha1
| Constructor Summary | |
AlgorithmMapper()
|
|
| Method Summary | |
static String |
getAbbreviation(String algorithmUri)
Get algorithm abbreviation (equals last part after namespace#) from uri e.g. |
static String |
getHashAbbrFromSuite(String suite)
Get hash (abbreviation) from signature method (eg. sha1 from ecdsa-sha1). |
static String |
getHashUriFromSuite(String suite)
Get hash method (URI) from signature method |
static String |
getUri(String algorithmShort)
Get valid URI from algorithm abbreviation e.g. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AlgorithmMapper()
| Method Detail |
public static String getAbbreviation(String algorithmUri)
sha1 from http://www.w3.org/2000/09/xmldsig#sha1
algorithmUri - algorithm URI
public static String getUri(String algorithmShort)
http://www.w3.org/2000/09/xmldsig#sha1 from sha1
algorithmShort -
public static String getHashAbbrFromSuite(String suite)
suite - abbreviation or full qualified signature method
public static String getHashUriFromSuite(String suite)
suite - abbreviation or full qualified signature method
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||