fi.hut.tcm.spki.impl
Class PubKey
java.lang.Object
|
+--fi.hut.tcm.spki.impl.Composite
|
+--fi.hut.tcm.spki.impl.PubKey
- public class PubKey
- extends Composite
- implements SpkiPrincipal, Key, SeqEnt, java.security.PublicKey, java.security.Key, java.io.Serializable
PubKey
Public Key class. Contains a PubSigAlgId followed by an arbitrary number
of SExpr:s followed by on optional Uri. SExpr:s contain the key data and
the Uri is a pointer to additional key info.
- See Also:
- Serialized Form
Constructor Summary |
PubKey()
|
PubKey(java.security.PublicKey key)
|
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
PubKey
public PubKey()
PubKey
public PubKey(java.security.PublicKey key)
check
public boolean check(Component addition)
throws java.lang.IllegalStateException
- Overrides:
- check in class Composite
accept
public void accept(Visitor visitor)
- Overrides:
- accept in class Composite
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
- getAlgorithm in interface java.security.Key
getEncoded
public byte[] getEncoded()
- Specified by:
- getEncoded in interface java.security.Key
getFormat
public java.lang.String getFormat()
- Specified by:
- getFormat in interface java.security.Key
getPublicKey
public java.security.PublicKey getPublicKey()
toString
public java.lang.String toString()
- Overrides:
- toString in class Composite