Package de.cardcontact.opencard.eac.cvc
Class PublicKeyTLV
- java.lang.Object
-
- de.cardcontact.tlv.TLV
-
- de.cardcontact.tlv.ConstructedTLV
-
- de.cardcontact.opencard.eac.cvc.PublicKeyTLV
-
- All Implemented Interfaces:
TreeNode
- Direct Known Subclasses:
ECPublicKeyTLV
,RSAPublicKeyTLV
public abstract class PublicKeyTLV extends ConstructedTLV
-
-
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 Modifier Constructor Description protected
PublicKeyTLV(ObjectIdentifier oid)
PublicKeyTLV(TLV tlv)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract byte[]
getEncodedForSPKI()
ObjectIdentifier
getObjectIdentifier()
java.security.PublicKey
getPublicKey(java.security.spec.AlgorithmParameterSpec params)
static PublicKeyTLV
newPublicKey(TLV tlv)
static void
toUnsignedByteArray(byte[] b, byte[] ub, int off, int size)
static void
toUnsignedByteArray(java.math.BigInteger bi, byte[] ub, int off, int size)
static byte[]
toUnsignedByteArray(java.math.BigInteger bi, int size)
-
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
-
PublicKeyTLV
protected PublicKeyTLV(ObjectIdentifier oid)
-
PublicKeyTLV
public PublicKeyTLV(TLV tlv) throws TLVEncodingException
- Throws:
TLVEncodingException
-
-
Method Detail
-
newPublicKey
public static PublicKeyTLV newPublicKey(TLV tlv) throws TLVEncodingException
- Throws:
TLVEncodingException
-
toUnsignedByteArray
public static void toUnsignedByteArray(byte[] b, byte[] ub, int off, int size)
-
toUnsignedByteArray
public static void toUnsignedByteArray(java.math.BigInteger bi, byte[] ub, int off, int size)
-
toUnsignedByteArray
public static byte[] toUnsignedByteArray(java.math.BigInteger bi, int size)
-
getObjectIdentifier
public ObjectIdentifier getObjectIdentifier()
-
getPublicKey
public java.security.PublicKey getPublicKey(java.security.spec.AlgorithmParameterSpec params)
-
getEncodedForSPKI
public abstract byte[] getEncodedForSPKI()
-
-