public class PasswordParam extends Object implements Password, Iterable<Password>, Unwrappable<Password>
If no passwords are in this sequence, the current item is the empty password.
NOTE : All the values are available at once in a PasswordParam. Actually, PasswordParam is iterable on all the passwords bound to the same name (if any) and already refer the first one in the sequence (if any, otherwise it refers to the empty password) ; therefore, it is irrelevant to specifically ask for a List<PasswordParam>, a Set<PasswordParam> or a SortedSet<PasswordParam>.
Password.ClearUnwrappable.Unwrapper| Constructor and Description |
|---|
PasswordParam()
Convenient constructor for a sequence representing the
empty password.
|
PasswordParam(Iterator<Password> sequence)
Create a sequence of passwords.
|
PasswordParam(Password password)
Convenient constructor for a sequence of a single password.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Invalidate this password.
|
Password.Clear |
getClearCopy()
Wrap this password in a clear copy.
|
boolean |
hasNext()
Indicates whether there is a next password in this sequence.
|
Iterator<Password> |
iterator() |
PasswordParam |
next()
Return the next password in this sequence.
|
PasswordState |
state()
Return the state of this password.
|
String |
toString() |
Password |
unwrap() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisDestroyed, newPasswordforEach, spliteratorpublic PasswordParam(Iterator<Password> sequence)
sequence - An iterator on the sequence.public PasswordParam(Password password)
password - The single password of the sequence.public PasswordParam()
public void destroy()
Passworddestroy in interface Destroyabledestroy in interface Passwordpublic PasswordState state()
Passwordpublic Password.Clear getClearCopy() throws IllegalStateException
PasswordgetClearCopy in interface PasswordIllegalStateException - If this password has been invalidated.public boolean hasNext()
true if a password is available, false otherwise.public PasswordParam next()
public Password unwrap()
unwrap in interface Unwrappable<Password>Copyright © 2018 Alternet. All rights reserved.