public class Slot extends Object
Token token = slot.getToken();
// to ensure that there is a token present in the slot
if (token != null) {
// ... work with the token
}
| Modifier | Constructor and Description |
|---|---|
protected |
Slot(Module module,
long slotID)
The constructor that takes a reference to the module and the slot ID.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object otherObject)
Compares the slot ID and the module_ of this object with the slot ID and
module_ of the other object.
|
Module |
getModule()
Get the module that created this Slot object.
|
long |
getSlotID()
Get the ID of this slot.
|
SlotInfo |
getSlotInfo()
Get information about this slot object.
|
Token |
getToken()
Get an object for handling the token that is currently present in this
slot, or null, if there is no token present.
|
int |
hashCode()
The overriding of this method should ensure that the objects of this
class work correctly in a hashtable.
|
boolean |
isUseUtf8Encoding()
Returns whether UTF8 encoding is set.
|
void |
setUseUtf8Encoding(boolean useUtf8Encoding)
Specify, whether UTF8 character encoding shall be used for character
array attributes and PINs.
|
String |
toString()
Returns the string representation of this object.
|
protected Slot(Module module, long slotID)
module - The reference to the module of this slot.slotID - The identifier of the slot.public boolean equals(Object otherObject)
public void setUseUtf8Encoding(boolean useUtf8Encoding)
useUtf8Encoding - true, if UTF8 shall be usedpublic boolean isUseUtf8Encoding()
public Module getModule()
public long getSlotID()
public SlotInfo getSlotInfo() throws TokenException
TokenException - If reading the information fails.public Token getToken() throws TokenException
TokenException - If determining if a token is present fails.public int hashCode()
Copyright © 2020. All rights reserved.