ACListpublic class ACList extends PKCS15File This class represents access control list (ACL). |
Fields Summary |
---|
private byte[] | AIDAID for this ACL. Received from ACIF. | private Vector | ACFThis vector contains parsed objects from ACF. | private ACEntry | ACEThe list of ACEs. | private PINData[] | PINInfoPIN information for APDU connection. | private Vector | pin_infoThis vector contains PIN information |
Constructors Summary |
---|
ACList(byte[] aid, Location location, AclFileSystem files)Creates ACList object for the pointed aid, location and file system
super(location, files);
AID = aid;
ACF = new Vector();
resetLoader(ACF, null, null);
try {
parseDF(location.path);
if (ACF.size() != 0) {
readACF();
} else {
ACE = null;
}
} catch (IOException e) {
ACE = null;
}
|
Methods Summary |
---|
public ACEntry | getACEntries()Returns the list of ACEs.
return ACE;
| void | getPINs(boolean isAPDU, java.util.Vector result)Places information about PINs into the vector.
for (int i = 0; i < PINInfo.length; i++) {
if (isAPDU == (PINInfo[i].commands instanceof Integer[])) {
result.addElement(PINInfo[i]);
}
}
| public boolean | match(byte[] selectAPDU)Verifies if this ACL describes permissions for AID in SELECT APDU.
return (AID == null) ||
(AID.length == selectAPDU[4] &&
Utils.byteMatch(AID, 0, AID.length,
selectAPDU, 5, AID.length));
| private void | readACF()Reads ACE data from the ACF vector.
ACE = new ACEntry(ACF, pin_info);
PINInfo = new PINData[pin_info.size()];
pin_info.copyInto(PINInfo);
|
|