public class PublicKey extends KmipObject
| Constructor and Description |
|---|
PublicKey() |
PublicKey(KeyBlock keyBlock) |
| Modifier and Type | Method and Description |
|---|---|
Attributes |
attributes()
Return the
Attributes or a set of empty Attributes |
byte[] |
bytes()
The low level cryptographic content of the Public Key
|
boolean |
equals(Object o) |
static PublicKey |
fromJson(String json)
Deserialize an instance from its Json representation obtained using oJson()
|
KeyBlock |
getKeyBlock() |
ObjectType |
getObjectType() |
int |
hashCode() |
PublicKey |
keyBlock(KeyBlock keyBlock) |
void |
setKeyBlock(KeyBlock keyBlock) |
String |
toString() |
fromJson, getObjectClass, toJsonpublic PublicKey()
public PublicKey(KeyBlock keyBlock)
public KeyBlock getKeyBlock()
public void setKeyBlock(KeyBlock keyBlock)
public ObjectType getObjectType()
getObjectType in class KmipObjectpublic Attributes attributes()
Attributes or a set of empty AttributesAttributes found in the KeyBlockpublic byte[] bytes()
throws CosmianException
CosmianException - if the key is wrapped and bytes cannot be extractedpublic static PublicKey fromJson(String json) throws CosmianException
json - the public key in JSON formCosmianException - if the parsing failsCopyright © 2022. All rights reserved.