UserAuthority implements Authority { PAM getPAM() throws PAMException { if (pam != null) { return pam; } return new PAM(serviceName); } UserAuthority(); @Override void initialize(); @Override String getID(); @Override String getDomain(); @Override String getHeader(); @Override String getAuthenticateChallenge(); @Override boolean allowAuthorization(); @Override Principal authenticate(String creds, String remoteAddr, String httpMethod, StringBuilder errMsg); static final String ATHENZ_AUTH_CHALLENGE; }
@Test public void testGetPAM() throws PAMException { UserAuthority userAuthority = new UserAuthority(); assertNotNull(userAuthority.getPAM()); }