Update PublicKey.java

Another quick fix, we forgot to add public to our accessor methods.