Code example for Subject

Methods: getPublicCredentials

0
                Map<String, ?> arg2, Map<String, ?> arg3) {
            sub = arg0;
        } 
 
        public boolean login() throws LoginException { 
            sub.getPublicCredentials().add(new Object());
            return true; 
        } 
 
        public boolean logout() throws LoginException { 
            return false; 
        } 
    } 
 
    private static class MyConfig extends Configuration {
 
        private String appName;
 
        private ArrayList<AppConfigurationEntry> entries;
 
        public MyConfig() {