@Immutable public interface PublicKeys
Modifier and Type | Method and Description |
---|---|
PublicKey |
create(String title,
String key)
Create a public key.
|
PublicKey |
get(int number)
Get a single public key.
|
Iterable<PublicKey> |
iterate()
Iterate all public keys.
|
void |
remove(int number)
Remove a public key.
|
User |
user()
User we're in.
|
@NotNull(message="Iterable of public keys is never NULL") Iterable<PublicKey> iterate()
@NotNull(message="PublicKey is never NULL") PublicKey get(int number)
number
- ID of the public key to remove.@NotNull(message="PublicKey is never NULL") PublicKey create(@NotNull(message="title is never NULL") String title, @NotNull(message="key is never NULL") String key) throws IOException
title
- The title of this key.key
- The value of this key.IOException
- If an IO problem occurs.void remove(int number) throws IOException
number
- ID of the public key to remove.IOException
- If an IO problem occurs.Copyright © 2012–2014 jcabi.com. All rights reserved.