This repository has been archived by the owner on Feb 6, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
119 changed files
with
951 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
*.ipr | ||
*.iws | ||
.idea/ | ||
/local.properties | ||
|
||
# Gradle | ||
.gradle | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Automatically generated on 2015-11-05T11:21:06-08:00 | ||
// DO NOT EDIT or your changes may be overwritten | ||
|
||
package org.stellar.base.xdr; | ||
|
||
|
||
import java.io.IOException; | ||
|
||
// === xdr source ============================================================ | ||
|
||
// struct Auth | ||
// { | ||
// // Empty message, just to confirm | ||
// // establishment of MAC keys. | ||
// int unused; | ||
// }; | ||
|
||
// =========================================================================== | ||
public class Auth { | ||
public Auth () {} | ||
private Integer unused; | ||
public Integer getunused() { | ||
return this.unused; | ||
} | ||
public void setunused(Integer value) { | ||
this.unused = value; | ||
} | ||
public static void encode(XdrDataOutputStream stream, Auth encodedAuth) throws IOException{ | ||
stream.writeInt(encodedAuth.unused); | ||
} | ||
public static Auth decode(XdrDataInputStream stream) throws IOException { | ||
Auth decodedAuth = new Auth(); | ||
decodedAuth.unused = stream.readInt(); | ||
return decodedAuth; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Automatically generated on 2015-11-05T11:21:06-08:00 | ||
// DO NOT EDIT or your changes may be overwritten | ||
|
||
package org.stellar.base.xdr; | ||
|
||
|
||
import java.io.IOException; | ||
|
||
// === xdr source ============================================================ | ||
|
||
// struct AuthCert | ||
// { | ||
// Curve25519Public pubkey; | ||
// uint64 expiration; | ||
// Signature sig; | ||
// }; | ||
|
||
// =========================================================================== | ||
public class AuthCert { | ||
public AuthCert () {} | ||
private Curve25519Public pubkey; | ||
public Curve25519Public getpubkey() { | ||
return this.pubkey; | ||
} | ||
public void setpubkey(Curve25519Public value) { | ||
this.pubkey = value; | ||
} | ||
private Uint64 expiration; | ||
public Uint64 getexpiration() { | ||
return this.expiration; | ||
} | ||
public void setexpiration(Uint64 value) { | ||
this.expiration = value; | ||
} | ||
private Signature sig; | ||
public Signature getsig() { | ||
return this.sig; | ||
} | ||
public void setsig(Signature value) { | ||
this.sig = value; | ||
} | ||
public static void encode(XdrDataOutputStream stream, AuthCert encodedAuthCert) throws IOException{ | ||
Curve25519Public.encode(stream, encodedAuthCert.pubkey); | ||
Uint64.encode(stream, encodedAuthCert.expiration); | ||
Signature.encode(stream, encodedAuthCert.sig); | ||
} | ||
public static AuthCert decode(XdrDataInputStream stream) throws IOException { | ||
AuthCert decodedAuthCert = new AuthCert(); | ||
decodedAuthCert.pubkey = Curve25519Public.decode(stream); | ||
decodedAuthCert.expiration = Uint64.decode(stream); | ||
decodedAuthCert.sig = Signature.decode(stream); | ||
return decodedAuthCert; | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
src/main/java/org/stellar/base/xdr/AuthenticatedMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Automatically generated on 2015-11-05T11:21:06-08:00 | ||
// DO NOT EDIT or your changes may be overwritten | ||
|
||
package org.stellar.base.xdr; | ||
|
||
|
||
import java.io.IOException; | ||
|
||
// === xdr source ============================================================ | ||
|
||
// struct AuthenticatedMessage | ||
// { | ||
// uint64 sequence; | ||
// StellarMessage message; | ||
// HmacSha256Mac mac; | ||
// }; | ||
|
||
// =========================================================================== | ||
public class AuthenticatedMessage { | ||
public AuthenticatedMessage () {} | ||
private Uint64 sequence; | ||
public Uint64 getsequence() { | ||
return this.sequence; | ||
} | ||
public void setsequence(Uint64 value) { | ||
this.sequence = value; | ||
} | ||
private StellarMessage message; | ||
public StellarMessage getmessage() { | ||
return this.message; | ||
} | ||
public void setmessage(StellarMessage value) { | ||
this.message = value; | ||
} | ||
private HmacSha256Mac mac; | ||
public HmacSha256Mac getmac() { | ||
return this.mac; | ||
} | ||
public void setmac(HmacSha256Mac value) { | ||
this.mac = value; | ||
} | ||
public static void encode(XdrDataOutputStream stream, AuthenticatedMessage encodedAuthenticatedMessage) throws IOException{ | ||
Uint64.encode(stream, encodedAuthenticatedMessage.sequence); | ||
StellarMessage.encode(stream, encodedAuthenticatedMessage.message); | ||
HmacSha256Mac.encode(stream, encodedAuthenticatedMessage.mac); | ||
} | ||
public static AuthenticatedMessage decode(XdrDataInputStream stream) throws IOException { | ||
AuthenticatedMessage decodedAuthenticatedMessage = new AuthenticatedMessage(); | ||
decodedAuthenticatedMessage.sequence = Uint64.decode(stream); | ||
decodedAuthenticatedMessage.message = StellarMessage.decode(stream); | ||
decodedAuthenticatedMessage.mac = HmacSha256Mac.decode(stream); | ||
return decodedAuthenticatedMessage; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/org/stellar/base/xdr/CreateAccountResultCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.