@NotThreadSafe public static interface PromptingKeyProvider.Controller<K extends SafeKey<K>>
PromptingKeyProvider.View
implementations.Modifier and Type | Method and Description |
---|---|
K |
getKey()
Returns the protected resource's key.
|
URI |
getResource()
Returns the unique resource identifier (resource ID) of the
protected resource for which this controller is used.
|
void |
setChangeRequested(boolean changeRequested)
Requests to prompt the user for a new key upon the next call to
SafeKeyProvider.getWriteKey() , provided that the key is
set by then. |
void |
setKey(K key)
Sets the protected resource's key to a clone of the given key.
|
@CheckForNull K getKey()
IllegalStateException
- if getting key is not legal in the
current state.URI getResource()
IllegalStateException
- if getting this property is not legal
in the current state.void setChangeRequested(boolean changeRequested)
SafeKeyProvider.getWriteKey()
, provided that the key is
set
by then.changeRequested
- whether or not the user shall get prompted
for a new key upon the next call to SafeKeyProvider.getWriteKey()
,
provided that the key is set
then.IllegalStateException
- if setting this property is not legal
in the current state.void setKey(@CheckForNull K key)
key
- The key to clone to use for the protected resource.IllegalStateException
- if setting key is not legal in the
current state.Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.