Package de.cardcontact.opencard.eac.cvc
Class RSAPublicKeyTLV
- java.lang.Object
-
- de.cardcontact.tlv.TLV
-
- de.cardcontact.tlv.ConstructedTLV
-
- de.cardcontact.opencard.eac.cvc.PublicKeyTLV
-
- de.cardcontact.opencard.eac.cvc.RSAPublicKeyTLV
-
- All Implemented Interfaces:
TreeNode
public class RSAPublicKeyTLV extends PublicKeyTLV
-
-
Field Summary
-
Fields inherited from class de.cardcontact.tlv.ConstructedTLV
childs
-
Fields inherited from class de.cardcontact.tlv.TLV
alternateLengthFormat, name, tag
-
-
Constructor Summary
Constructors Constructor Description RSAPublicKeyTLV(ObjectIdentifier oid, java.security.interfaces.RSAPublicKey pk)
RSAPublicKeyTLV(TLV tlv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getEncodedForSPKI()
java.security.PublicKey
getPublicKey(java.lang.String providerName)
java.security.PublicKey
getPublicKey(java.security.spec.AlgorithmParameterSpec params)
-
Methods inherited from class de.cardcontact.opencard.eac.cvc.PublicKeyTLV
getObjectIdentifier, newPublicKey, toUnsignedByteArray, toUnsignedByteArray, toUnsignedByteArray
-
Methods inherited from class de.cardcontact.tlv.ConstructedTLV
add, add, dump, findTag, get, getChildAt, getChildCount, getElements, getIndex, getLength, getParent, isLeaf, remove, toByteArray, valueToByteArray
-
Methods inherited from class de.cardcontact.tlv.TLV
dump, dumpSingleLine, factory, factory, factory, getBytes, getLengthFieldAsByteArray, getLengthFieldSize, getLengthFieldSizeHelper, getName, getSize, getTag, getValue, lengthFromByteArray, lengthToByteArray, setName, setTag, toString, useAlternateLengthEncoding
-
-
-
-
Constructor Detail
-
RSAPublicKeyTLV
public RSAPublicKeyTLV(ObjectIdentifier oid, java.security.interfaces.RSAPublicKey pk)
-
RSAPublicKeyTLV
public RSAPublicKeyTLV(TLV tlv) throws TLVEncodingException
- Throws:
TLVEncodingException
-
-
Method Detail
-
getPublicKey
public java.security.PublicKey getPublicKey(java.lang.String providerName)
-
getPublicKey
public java.security.PublicKey getPublicKey(java.security.spec.AlgorithmParameterSpec params)
- Overrides:
getPublicKey
in classPublicKeyTLV
-
getEncodedForSPKI
public byte[] getEncodedForSPKI()
- Specified by:
getEncodedForSPKI
in classPublicKeyTLV
-
-