PrincipalAuthority implements Authority, AuthorityKeyStore { @Override public String getAuthenticateChallenge() { return ATHENZ_AUTH_CHALLENGE; } PrincipalAuthority(); @Override String getID(); @Override void initialize(); @Override String getDomain(); @Override String getHeader(); @Override String getAuthenticateChallenge(); @Override Principal authenticate(String signedToken, String remoteAddr, String httpMethod,
            StringBuilder errMsg); @Override void setKeyStore(KeyStore keyStore); static final String HTTP_HEADER; static final String ATHENZ_AUTH_CHALLENGE; static final String ATHENZ_PROP_PRINCIPAL_HEADER; }
@Test public void testGetAuthenticateChallenge() { PrincipalAuthority serviceAuthority = new PrincipalAuthority(); assertEquals(serviceAuthority.getAuthenticateChallenge(), "AthenzPrincipalToken realm=\"athenz\""); }