|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.atp.auth.ByteSequence
The ByteSequence class is byte sequence using for authentication.
Challenge
,
SharedSecret
, Serialized FormConstructor Summary | |
ByteSequence(byte[] seq)
Constructor creates byte sequence as a copy of given byte sequence. |
|
ByteSequence(ByteSequence seq)
Constructor creates byte sequence as a copy of given byte sequence. |
|
ByteSequence(int length)
Constructor creates a secure random generator to generate byte sequence. |
|
ByteSequence(int length,
java.lang.String str)
Constructor creates byte sequence as a copy of length and given hexadecimal string of encoded bytes. |
|
ByteSequence(int length,
java.lang.String str,
java.lang.String delimiters)
Constructor creates byte sequence as a copy of length and given hexadecimal string of encoded bytes. |
|
ByteSequence(java.lang.String str)
Constructor creates byte sequence as a copy of given string. |
Method Summary | |
void |
append(byte b)
Append a given byte into the byte sequence. |
void |
append(byte[] seq)
Append a given byte sequence into the byte sequence. |
void |
append(ByteSequence seq)
Append a given byte sequence object into the byte sequence. |
void |
append(java.lang.String str)
Append a given string into the byte sequence. |
protected java.lang.Object |
clone()
Creates a clone of the byte sequence. |
void |
copy(byte[] seq)
Copy a byte sequence using for authentication. |
void |
copy(ByteSequence seq)
Copy a byte sequence object as a byte sequence using for authentication. |
void |
copy(java.lang.String str)
Copy a string as byte sequence using for authentication. |
boolean |
equals(byte[] seq)
Verifies the byte sequence equals to given byte sequence. |
boolean |
equals(ByteSequence seq)
Verifies the byte sequence equals to given byte sequence. |
boolean |
equals(java.lang.Object obj)
Verifies the byte sequence equals to given object. |
int |
length()
Returns length of byte sequence. |
byte[] |
sequence()
Returns current byte sequence. |
java.lang.String |
toString()
Returns a hexadecimal string representation of the byte sequence. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ByteSequence(byte[] seq)
seq
- a byte sequence to be copiedpublic ByteSequence(int length)
length
- length of byte sequence to be generatedpublic ByteSequence(int length, java.lang.String str)
length
- length of byte sequencestr
- a hexadecimal string to be copiedtoString
public ByteSequence(int length, java.lang.String str, java.lang.String delimiters)
length
- length of byte sequencestr
- a hexadecimal string to be copieddelimiters
- delimiters between hexadecimal numberstoString
public ByteSequence(ByteSequence seq)
seq
- a byte sequence to be copiedpublic ByteSequence(java.lang.String str)
str
- a string to be copiedMethod Detail |
public void append(byte[] seq)
seq
- a byte sequence to be appendedpublic void append(byte b)
b
- a byte to be appendedpublic void append(ByteSequence seq)
seq
- a byte sequence object to be appendedpublic void append(java.lang.String str)
str
- a string to be appendedprotected java.lang.Object clone()
clone
in class java.lang.Object
seq
- a byte sequenceObject.clone()
,
Cloneable
public void copy(byte[] seq)
seq
- a byte sequencepublic void copy(ByteSequence seq)
seq
- a byte sequence object to be copied as a byte sequence using for authenticationpublic void copy(java.lang.String str)
str
- a string to be copied as a byte sequence using for authenticationpublic boolean equals(byte[] seq)
seq
- a byte sequencepublic boolean equals(ByteSequence seq)
seq
- a byte sequencepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- a objectObject.equals(java.lang.Object)
public int length()
public byte[] sequence()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |