K - the type of this prompting key.public interface PromptingKey<K extends PromptingKey<K>> extends Key<K>
Implementations need to be stateful and hence do not need to be thread-safe.
PromptingKeyProvider| Modifier and Type | Interface and Description |
|---|---|
static interface |
PromptingKey.Controller<K extends PromptingKey<K>>
Proxies access to the key for
PromptingKey.View implementations. |
static interface |
PromptingKey.View<K extends PromptingKey<K>>
Used for the actual prompting of the user for a key (a password for
example) which is required to access a protected resource.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isChangeRequested()
Returns whether or not the user shall get prompted for a new key upon
the next call to
PromptingKeyProvider.getKeyForWriting(),
provided that the key has been set
before. |
void |
setChangeRequested(boolean changeRequested)
Requests to prompt the user for a new key upon the next call to
PromptingKeyProvider.getKeyForWriting(), provided that the key
has been set by then. |
boolean isChangeRequested()
PromptingKeyProvider.getKeyForWriting(),
provided that the key has been set
before.PromptingKeyProvider.getKeyForWriting(),
provided that the key has been
set before.void setChangeRequested(boolean changeRequested)
PromptingKeyProvider.getKeyForWriting(), provided that the key
has been set by then.changeRequested - whether or not the user shall get prompted
for a new key upon the next call to
PromptingKeyProvider.getKeyForWriting(), provided that the
key has been set by then.Copyright © 2012–2015 Schlichtherle IT Services. All rights reserved.