Package org.stellar.sdk.xdr
Class AuthCert
java.lang.Object
org.stellar.sdk.xdr.AuthCert
- All Implemented Interfaces:
XdrElement
AuthCert's original definition in the XDR file is:
struct AuthCert
{
Curve25519Public pubkey;
uint64 expiration;
Signature sig;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionAuthCert()AuthCert(Curve25519Public pubkey, Uint64 expiration, Signature sig) Creates a newAuthCertinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthCert.AuthCertBuilderbuilder()static AuthCertdecode(XdrDataInputStream stream) static AuthCertdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic AuthCertstatic AuthCertfromXdrBase64(String xdr) static AuthCertfromXdrByteArray(byte[] xdr) Value of theexpirationfield.Value of thepubkeyfield.getSig()Value of thesigfield.inthashCode()voidsetExpiration(Uint64 expiration) Value of theexpirationfield.voidsetPubkey(Curve25519Public pubkey) Value of thepubkeyfield.voidValue of thesigfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
AuthCert
public AuthCert() -
AuthCert
Creates a newAuthCertinstance.- Parameters:
pubkey- thepubkeyfield valueexpiration- theexpirationfield valuesig- thesigfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getPubkey
Value of thepubkeyfield.- Returns:
- the
pubkeyfield value
-
getExpiration
Value of theexpirationfield.- Returns:
- the
expirationfield value
-
getSig
Value of thesigfield.- Returns:
- the
sigfield value
-
setPubkey
Value of thepubkeyfield.- Parameters:
pubkey- thepubkeyfield value
-
setExpiration
Value of theexpirationfield.- Parameters:
expiration- theexpirationfield value
-
setSig
Value of thesigfield.- Parameters:
sig- thesigfield value
-
equals
-
hashCode
public int hashCode() -
toString
-