@Immutable @Loggable(value=1) public static final class PublicKey.Smart extends Object implements PublicKey
PublicKey.Smart
Constructor and Description |
---|
PublicKey.Smart(PublicKey pkey)
Public ctor.
|
Modifier and Type | Method and 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.
|
@NotNull(message="key is never NULL") public String key() throws IOException
IOException
- If there is any I/O problempublic void key(@NotNull(message="value can\'t be NULL") String value) throws IOException
value
- Title of public keyIOException
- If there is any I/O problem@NotNull(message="url is never NULL") public URL url() throws IOException
IOException
- If there is any I/O problem@NotNull(message="title is never NULL") public String title() throws IOException
IOException
- If there is any I/O problempublic void title(@NotNull(message="text can\'t be NULL") String text) throws IOException
text
- Title of public keyIOException
- If there is any I/O problem@NotNull(message="JSON is never NULL") public javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problempublic void patch(@NotNull(message="JSON is never NULL") javax.json.JsonObject json) throws IOException
JsonPatchable
patch
in interface JsonPatchable
json
- JSON objectIOException
- If there is any I/O problem@NotNull(message="user is never NULL") public User user()
PublicKey
Copyright © 2012–2014 jcabi.com. All rights reserved.