fi.hut.tcm.spki.impl
Class SecKey

java.lang.Object
  |
  +--fi.hut.tcm.spki.impl.Composite
        |
        +--fi.hut.tcm.spki.impl.SecKey

public class SecKey
extends Composite
implements Key, SeqEnt, java.security.Key

SecKey Shared Secret Key class. Contains a SecSigAlgId 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
SecKey()
           
 
Method Summary
 void accept(Visitor visitor)
           
 boolean check(Component addition)
           
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 
Methods inherited from class fi.hut.tcm.spki.impl.Composite
add, get, get, iterator, remove, size, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

SecKey

public SecKey()
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