public static class GameProfile.Property extends Object
| Constructor and Description |
|---|
Property(String name,
String value)
Creates a new Property instance.
|
Property(String name,
String value,
String signature)
Creates a new Property instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of the property.
|
String |
getSignature()
Gets the signature used to verify the property.
|
String |
getValue()
Gets the value of the property.
|
boolean |
hasSignature()
Gets whether this property has a signature to verify it.
|
boolean |
isSignatureValid(PublicKey key)
Gets whether this property's signature is valid.
|
String |
toString() |
public Property(String name, String value)
name - Name of the property.value - Value of the property.public String getName()
public String getValue()
public boolean hasSignature()
public String getSignature()
public boolean isSignatureValid(PublicKey key) throws SignatureValidateException
key - Public key to validate the signature against.SignatureValidateException - If the signature could not be validated.Copyright © 2023. All rights reserved.