com.ibutton.jib
Class JibMasterPIN
java.lang.Object
|
+--com.ibutton.jib.JibMasterPIN
- public class JibMasterPIN
- extends java.lang.Object
A PIN class used by the JibButton class to set the Common PIN on
an iButton with Java.
|
Constructor Summary |
JibMasterPIN()
Constructs an empty JibMasterPIN. |
JibMasterPIN(int[] newpin)
Constructs a JibMasterPIN instance with the value of newpin. |
|
Method Summary |
int[] |
getPIN()
gets the PIN. |
int |
getPINLength()
Get the length of the PIN. |
void |
setPIN(int[] newpin)
Sets the internal PIN to newpin. |
| Methods inherited from class java.lang.Object |
equals,
hashCode,
toString |
JibMasterPIN
public JibMasterPIN(int[] newpin)
- Constructs a JibMasterPIN instance with the value of newpin.
- Parameters:
newpin - - the value of the PIN.
JibMasterPIN
public JibMasterPIN()
- Constructs an empty JibMasterPIN.
setPIN
public void setPIN(int[] newpin)
- Sets the internal PIN to newpin.
- Parameters:
newpin - the value to set the internal PIN to.
getPINLength
public int getPINLength()
- Get the length of the PIN.
- Returns:
- the length of the PIN.
getPIN
public int[] getPIN()
- gets the PIN.
- Returns:
- the stored value of the PIN.