edu.vt.middleware.crypt.io
Class PublicKeyCredentialReader
java.lang.Object
edu.vt.middleware.crypt.io.AbstractEncodedCredentialReader<PublicKey>
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
|
Method Summary |
protected PublicKey |
decode(byte[] encoded)
Decodes an encoded representation of a credential into a corresponding
object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PublicKeyCredentialReader
public PublicKeyCredentialReader()
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.