Package com.jcabi.github
Interface PublicKeys
-
@Immutable public interface PublicKeys
Github public keys.- Version:
- $Id: 9c304b6dba44ab568c9a5f3aad3ddbca97fbb894 $
- Author:
- Carlos Miranda (miranda.cma@gmail.com)
- See Also:
- Public Keys API
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PublicKeycreate(String title, String key)Create a public key.PublicKeyget(int number)Get a single public key.Iterable<PublicKey>iterate()Iterate all public keys.voidremove(int number)Remove a public key.Useruser()User we're in.
-
-
-
Method Detail
-
user
User user()
User we're in.- Returns:
- User
-
iterate
Iterable<PublicKey> iterate()
Iterate all public keys.- Returns:
- All public keys.
- See Also:
- List your public keys.
-
get
PublicKey get(int number)
Get a single public key.- Parameters:
number- ID of the public key to remove.- Returns:
- A single public key.
- See Also:
- Get a single public key.
-
create
PublicKey create(String title, String key) throws IOException
Create a public key.- Parameters:
title- The title of this key.key- The value of this key.- Returns:
- A new PublicKey
- Throws:
IOException- If an IO problem occurs.- See Also:
- Create a public key.
-
remove
void remove(int number) throws IOExceptionRemove a public key.- Parameters:
number- ID of the public key to remove.- Throws:
IOException- If an IO problem occurs.- See Also:
- Delete a public key.
-
-