de.flexiprovider.pki
Class PKITools

java.lang.Object
  |
  +--de.flexiprovider.pki.PKITools

public final class PKITools
extends java.lang.Object

PKI utility class. Used to get FlexiAPI objects from ASN.1 CoDec objects.

Author:
Martin Döring

Method Summary
static AlgorithmIdentifier getAlgorithmIdentifier(codec.pkcs8.PrivateKeyInfo pki)
          Get an AlgorithmIdentifier object from the given PrivateKeyInfo structure.
static AlgorithmIdentifier getAlgorithmIdentifier(codec.x509.SubjectPublicKeyInfo spki)
          Get an AlgorithmIdentifier object from the given SubjectPublicKeyInfo structure.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAlgorithmIdentifier

public static AlgorithmIdentifier getAlgorithmIdentifier(codec.pkcs8.PrivateKeyInfo pki)
Get an AlgorithmIdentifier object from the given PrivateKeyInfo structure.
Parameters:
pki - the PrivateKeyInfo structure
Returns:
the AlgorithmIdentifier

getAlgorithmIdentifier

public static AlgorithmIdentifier getAlgorithmIdentifier(codec.x509.SubjectPublicKeyInfo spki)
Get an AlgorithmIdentifier object from the given SubjectPublicKeyInfo structure.
Parameters:
spki - the SubjectPublicKeyInfo structure
Returns:
the AlgorithmIdentifier