@Test public void testConstructorCreatesPublicKeyFromSubjectInfo() throws GeneralSecurityException { byte[] subjectInfo = publicKey.getEncoded(); RawPublicKeyIdentity principal = new RawPublicKeyIdentity(subjectInfo, publicKey.getAlgorithm()); assertThat(principal.getKey(), is(publicKey)); }
public final PublicKey getKey() { return publicKey; }
RawPublicKeyIdentity extends AbstractExtensiblePrincipal<RawPublicKeyIdentity> { public final PublicKey getKey() { return publicKey; } }
RawPublicKeyIdentity extends AbstractExtensiblePrincipal<RawPublicKeyIdentity> { public final PublicKey getKey() { return publicKey; } RawPublicKeyIdentity(PublicKey key); private  RawPublicKeyIdentity(PublicKey key, AdditionalInfo additionalInformation);  RawPublicKeyIdentity(byte[] subjectInfo);  RawPublicKeyIdentity(byte[] subjectInfo, String keyAlgorithm); private  RawPublicKeyIdentity(byte[] subjectInfo, String keyAlgorithm, AdditionalInfo additionalInformation); }
RawPublicKeyIdentity extends AbstractExtensiblePrincipal<RawPublicKeyIdentity> { public final PublicKey getKey() { return publicKey; } RawPublicKeyIdentity(PublicKey key); private  RawPublicKeyIdentity(PublicKey key, AdditionalInfo additionalInformation);  RawPublicKeyIdentity(byte[] subjectInfo);  RawPublicKeyIdentity(byte[] subjectInfo, String keyAlgorithm); private  RawPublicKeyIdentity(byte[] subjectInfo, String keyAlgorithm, AdditionalInfo additionalInformation); @Override RawPublicKeyIdentity amend(AdditionalInfo additionalInfo); @Override final String getName(); final PublicKey getKey(); final byte[] getSubjectInfo(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
RawPublicKeyIdentity extends AbstractExtensiblePrincipal<RawPublicKeyIdentity> { public final PublicKey getKey() { return publicKey; } RawPublicKeyIdentity(PublicKey key); private  RawPublicKeyIdentity(PublicKey key, AdditionalInfo additionalInformation);  RawPublicKeyIdentity(byte[] subjectInfo);  RawPublicKeyIdentity(byte[] subjectInfo, String keyAlgorithm); private  RawPublicKeyIdentity(byte[] subjectInfo, String keyAlgorithm, AdditionalInfo additionalInformation); @Override RawPublicKeyIdentity amend(AdditionalInfo additionalInfo); @Override final String getName(); final PublicKey getKey(); final byte[] getSubjectInfo(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }