public class DG14File extends DataGroup
EF_COM_TAG, EF_DG1_TAG, EF_DG10_TAG, EF_DG11_TAG, EF_DG12_TAG, EF_DG13_TAG, EF_DG14_TAG, EF_DG15_TAG, EF_DG16_TAG, EF_DG2_TAG, EF_DG3_TAG, EF_DG4_TAG, EF_DG5_TAG, EF_DG6_TAG, EF_DG7_TAG, EF_DG8_TAG, EF_DG9_TAG, EF_SOD_TAG
Constructor and Description |
---|
DG14File(java.util.Collection<SecurityInfo> securityInfos)
Constructs a new DG14 file from the provided data.
|
DG14File(java.io.InputStream inputStream)
Constructs a new DG14 file from the data in an input stream.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<ActiveAuthenticationInfo> |
getActiveAuthenticationInfos() |
java.util.Map<java.math.BigInteger,java.lang.String> |
getChipAuthenticationInfos()
Gets the mapping of key identifiers to EAC protocol identifiers
contained in this file.
|
java.util.Map<java.math.BigInteger,java.security.PublicKey> |
getChipAuthenticationPublicKeyInfos()
Gets the mapping of key identifiers to public keys.
|
java.util.List<java.lang.Short> |
getCVCAFileIds()
Gets the list of file identifier references to efCVCA files, possibly
empty.
|
byte |
getCVCAShortFileId(int fileId)
Gets a corresponding short file ID.
|
byte[] |
getEncoded()
Gets the contents of this file as byte array,
includes the ICAO tag and length.
|
java.util.Collection<SecurityInfo> |
getSecurityInfos()
Gets the security infos as an unordered collection.
|
int |
hashCode() |
protected void |
readContent(java.io.InputStream inputStream)
Reads the contents of the data group from an input stream.
|
java.lang.String |
toString()
Gets a textual representation of this file.
|
protected void |
writeContent(java.io.OutputStream outputStream)
Writes the contents of the data group to an output stream.
|
getLength, getTag, readObject, writeObject
public DG14File(java.util.Collection<SecurityInfo> securityInfos)
securityInfos
- a list of security infospublic DG14File(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- the input stream to parse the data fromjava.io.IOException
- on error reading from input streamprotected void readContent(java.io.InputStream inputStream) throws java.io.IOException
DataGroup
readContent
in class DataGroup
inputStream
- the input stream to read fromjava.io.IOException
- on error reading from input streamprotected void writeContent(java.io.OutputStream outputStream) throws java.io.IOException
DataGroup
writeContent
in class DataGroup
outputStream
- the output stream to write tojava.io.IOException
- on error writing to output streampublic java.util.List<java.lang.Short> getCVCAFileIds()
public byte getCVCAShortFileId(int fileId)
fileId
- the file IDpublic java.util.Map<java.math.BigInteger,java.lang.String> getChipAuthenticationInfos()
public java.util.List<ActiveAuthenticationInfo> getActiveAuthenticationInfos()
public java.util.Map<java.math.BigInteger,java.security.PublicKey> getChipAuthenticationPublicKeyInfos()
public java.util.Collection<SecurityInfo> getSecurityInfos()
public java.lang.String toString()
DataGroup
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public byte[] getEncoded()
getEncoded
in interface LDSElement