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

Fields inherited from class fi.hut.tcm.spki.impl.Composite
children
 
Constructor Summary
PubKey()
           
PubKey(java.security.PublicKey key)
           
 
Method Summary
 void accept(Visitor visitor)
           
 boolean check(Component addition)
           
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 java.security.PublicKey getPublicKey()
           
 java.lang.String toString()
           
 
Methods inherited from class fi.hut.tcm.spki.impl.Composite
add, get, get, iterator, remove, size
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

PubKey

public PubKey()

PubKey

public PubKey(java.security.PublicKey key)
Method Detail

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