Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Minimal changes needed to build a KeyczarReader outside of org.keyzcar.
Browse files Browse the repository at this point in the history
We may need a bit more, but this is enough to let me build
KeyczarFileReader in a non-org.keyzcar package.
  • Loading branch information
divegeek committed Feb 26, 2015
1 parent 0987494 commit 55eab94
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions java/code/src/org/keyczar/KeyMetadata.java
Expand Up @@ -50,7 +50,7 @@
* @author arkajit.dey@gmail.com (Arkajit Dey)
*
*/
class KeyMetadata {
public class KeyMetadata {
@Expose String name = "";
@Expose KeyPurpose purpose = KeyPurpose.TEST;
@Expose KeyType type = DefaultKeyType.TEST;
Expand Down Expand Up @@ -163,7 +163,7 @@ public KeyVersion getPrimaryVersion() throws NoPrimaryKeyException {
* @param jsonString
* @return KeyMetadata corresponding to JSON input
*/
static KeyMetadata read(String jsonString) {
public static KeyMetadata read(String jsonString) {
KeyMetadata kmd = Util.gson().fromJson(jsonString, KeyMetadata.class);
for (KeyVersion version : kmd.getVersions()) {
kmd.versionMap.put(version.getVersionNumber(), version);
Expand Down
4 changes: 2 additions & 2 deletions java/code/src/org/keyczar/KeyVersion.java
Expand Up @@ -41,7 +41,7 @@
* @author arkajit.dey@gmail.com (Arkajit Dey)
*
*/
class KeyVersion {
public class KeyVersion {
@Expose private boolean exportable = false;
@Expose private KeyStatus status = KeyStatus.ACTIVE;
@Expose private int versionNumber = 0;
Expand Down Expand Up @@ -85,7 +85,7 @@ KeyStatus getStatus() {
return status;
}

int getVersionNumber() {
public int getVersionNumber() {
return versionNumber;
}

Expand Down
2 changes: 1 addition & 1 deletion java/code/src/org/keyczar/KeyczarKey.java
Expand Up @@ -47,7 +47,7 @@
* @author arkajit.dey@gmail.com (Arkajit Dey)
*
*/
abstract class KeyczarKey {
public abstract class KeyczarKey {
private static final String PEM_FOOTER_BEGIN = "-----END ";
private static final String PEM_LINE_ENDING = "-----\n";
private static final String PEM_HEADER_BEGIN = "-----BEGIN ";
Expand Down

0 comments on commit 55eab94

Please sign in to comment.