Package jade.security
Interface SDSIName
-
public interface SDSINameTheSDSINameinterface represents a wrapper for public key used in asymmetric cryptographic operations. It is also used as unique identifier for JADE principals.- Version:
- $Date$ $Revision$
- Author:
- Giosue Vitaglione - Telecom Italia LAB
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAlgorithm()Returns the standard algorithm name for this key.byte[]getEncoded()Returns the key in its primary encoding format.StringgetFormat()Returns the name of the primary encoding format of this key.StringgetLastLocalName()String[]getLocalNames()Returns the sequence of the names local to the Public Key in a SDSI fashion.
-
-
-
Method Detail
-
getAlgorithm
String getAlgorithm()
Returns the standard algorithm name for this key.- Returns:
- the name of the algorithm associated with this key.
-
getEncoded
byte[] getEncoded()
Returns the key in its primary encoding format.- Returns:
- The encoded form of the key.
-
getFormat
String getFormat()
Returns the name of the primary encoding format of this key.- Returns:
- the primary encoding format of the key.
-
getLocalNames
String[] getLocalNames()
Returns the sequence of the names local to the Public Key in a SDSI fashion. Last item is always ".". Example: "." => Simply the Public Key, no local names here involved. Example: "bob", "." => The principal defined as 'bob' by the owner of the given public key Example: "bob", "alice", "." => The principal defined as 'alice' by the principal defined by 'bob' by the owner of the given public key
-
getLastLocalName
String getLastLocalName()
- Returns:
- the right most local name
-
-