/** * Get an object for handling the token that is currently present in this * slot, or null, if there is no token present. * * @return The object for accessing the token. Or null, if none is present * in this slot. * @exception TokenException * If determining if a token is present fails. * @preconditions * @postconditions */ public Token getToken() throws TokenException { Token token = null; if (getSlotInfo().isTokenPresent()) { token = new Token(this); } return token; }