K
- the type of the prompting keys.@ThreadSafe public final class PromptingKeyManager<K extends PromptingKey<K>> extends AbstractKeyManager<K>
PromptingKeyManagerMap
Constructor and Description |
---|
PromptingKeyManager(PromptingKey.View<K> view)
Constructs a new prompting key manager.
|
Modifier and Type | Method and Description |
---|---|
void |
link(URI originUri,
URI targetUri)
Notifies this key manager that a protected resource has been linked.
|
KeyProvider<K> |
provider(URI uri)
Returns a key provider for accessing the identified protected resource.
|
void |
release(URI uri)
Notifies this key manager that a protected resource has been released.
|
String |
toString()
Returns a string representation of this object for logging and debugging
purposes.
|
void |
unlink(URI uri)
Notifies this key manager that a protected resource has been unlinked.
|
equals, hashCode
public PromptingKeyManager(PromptingKey.View<K> view)
view
- the view for key prompting.public void link(URI originUri, URI targetUri)
KeyManager
originUri
- the origin URI of the protected resource.targetUri
- the target URI of the protected resource.public KeyProvider<K> provider(URI uri)
KeyManager
uri
- the URI of the protected resource.public void release(URI uri)
The implementation in the class PromptingKeyManager
resets the
state of the key provider for the given protected resource if and only
if prompting for the key has been cancelled.
uri
- the URI of the protected resource.public String toString()
toString
in class AbstractKeyManager<K extends PromptingKey<K>>
public void unlink(URI uri)
KeyManager
KeyManager.release(java.net.URI)
.uri
- the URI of the protected resource.Copyright © 2012–2018 Schlichtherle IT Services. All rights reserved.