Package com.jcabi.github
Class PublicKey.Smart
- java.lang.Object
-
- com.jcabi.github.PublicKey.Smart
-
- All Implemented Interfaces:
JsonPatchable
,JsonReadable
,PublicKey
- Enclosing interface:
- PublicKey
@Immutable @Loggable(1) public static final class PublicKey.Smart extends Object implements PublicKey
Smart PublicKey with extra features.- Suppressed Checkstyle violations:
- MultipleStringLiterals (500 lines)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.PublicKey
PublicKey.Smart
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.json.JsonObject
json()
Describe it in a JSON object.String
key()
Get its key value.void
key(String value)
Change its value.int
number()
ID Number of this public key.void
patch(javax.json.JsonObject json)
Patch using this JSON object.String
title()
Get its title.void
title(String text)
Change its title.URL
url()
Get its URL.User
user()
User we're in.
-
-
-
Constructor Detail
-
Smart
public Smart(PublicKey pkey)
Public ctor.- Parameters:
pkey
- Public key
-
-
Method Detail
-
key
public String key() throws IOException
Get its key value.- Returns:
- Value of public key
- Throws:
IOException
- If there is any I/O problem
-
key
public void key(String value) throws IOException
Change its value.- Parameters:
value
- Title of public key- Throws:
IOException
- If there is any I/O problem
-
url
public URL url() throws IOException
Get its URL.- Returns:
- URL of public key
- Throws:
IOException
- If there is any I/O problem
-
title
public String title() throws IOException
Get its title.- Returns:
- Title of public key
- Throws:
IOException
- If there is any I/O problem
-
title
public void title(String text) throws IOException
Change its title.- Parameters:
text
- Title of public key- Throws:
IOException
- If there is any I/O problem
-
json
public javax.json.JsonObject json() throws IOException
Description copied from interface:JsonReadable
Describe it in a JSON object.- Specified by:
json
in interfaceJsonReadable
- Returns:
- JSON object
- Throws:
IOException
- If there is any I/O problem
-
patch
public void patch(javax.json.JsonObject json) throws IOException
Description copied from interface:JsonPatchable
Patch using this JSON object.- Specified by:
patch
in interfaceJsonPatchable
- Parameters:
json
- JSON object- Throws:
IOException
- If there is any I/O problem
-
-