edu.vt.middleware.crypt.io
Class PublicKeyCredentialReader

java.lang.Object
  extended by edu.vt.middleware.crypt.io.AbstractEncodedCredentialReader<PublicKey>
      extended by edu.vt.middleware.crypt.io.PublicKeyCredentialReader
All Implemented Interfaces:
CredentialReader<PublicKey>

public class PublicKeyCredentialReader
extends AbstractEncodedCredentialReader<PublicKey>

Reads encoded public keys in X.509 public key format. Both PEM and DER encodings are supported.

Version:
$Revision: 1818 $
Author:
Middleware Services

Field Summary
 
Fields inherited from class edu.vt.middleware.crypt.io.AbstractEncodedCredentialReader
DSA_ID, logger, RSA_ID
 
Constructor Summary
PublicKeyCredentialReader()
           
 
Method Summary
protected  PublicKey decode(byte[] encoded)
          Decodes an encoded representation of a credential into a corresponding object.
 
Methods inherited from class edu.vt.middleware.crypt.io.AbstractEncodedCredentialReader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicKeyCredentialReader

public PublicKeyCredentialReader()
Method Detail

decode

protected PublicKey decode(byte[] encoded)
                    throws CryptException
Decodes an encoded representation of a credential into a corresponding object.

Specified by:
decode in class AbstractEncodedCredentialReader<PublicKey>
Parameters:
encoded - Encoded representation of credential.
Returns:
Decoded credential.
Throws:
CryptException - On decoding errors.


Copyright © 2003-2011 Virginia Tech. All Rights Reserved.