1 19 20 package com.sslexplorer.security; 21 22 import java.util.List ; 23 24 import com.sslexplorer.core.Database; 25 import com.sslexplorer.navigation.Favorite; 26 27 34 public interface SystemDatabase extends Database { 35 36 42 public void addFavorite(int type, int favoriteKey, String username) throws Exception ; 43 44 50 public void removeFavorite(int type, int favoriteKey, String username) throws Exception ; 51 52 57 public boolean verifyIPAddress(String ipadrress) throws Exception ; 58 59 65 public boolean verifyIPAddress(String ipAddress, IpRestriction[] ipRestrictions) throws Exception ; 66 67 71 public void removeIpRestriction(int id) throws Exception ; 72 73 80 public void addIpRestriction(String addressPattern, int type) throws Exception ; 81 82 88 public void updateIpRestriction(IpRestriction restriction) throws Exception ; 89 90 96 public IpRestriction[] getIpRestrictions() throws Exception ; 97 98 106 public IpRestriction getIpRestriction(int id) throws Exception ; 107 108 116 public void swapIpRestrictions(IpRestriction restriction1, IpRestriction restriction2) throws Exception ; 117 118 124 public List <Favorite> getFavorites(int type, User username) throws Exception ; 125 126 133 public Favorite getFavorite(int type, User user, int favoriteKey) throws Exception ; 134 135 139 public List <AuthenticationScheme> getAuthenticationSchemeSequences() throws Exception ; 140 141 146 public List <AuthenticationScheme> getAuthenticationSchemeSequences(int realmID) throws Exception ; 147 148 153 public AuthenticationScheme getAuthenticationSchemeSequence(int id) throws Exception ; 154 155 161 public AuthenticationScheme getAuthenticationSchemeSequence(String name, int realmID) throws Exception ; 162 163 173 public AuthenticationScheme createAuthenticationSchemeSequence(int realmID, String name, String description, String [] modules, boolean enabled, int priority) throws Exception ; 174 175 179 public void updateAuthenticationSchemeSequence(AuthenticationScheme sequence) throws Exception ; 180 181 186 public void moveAuthenticationSchemeUp(AuthenticationScheme scheme, List <AuthenticationScheme> schemes) throws Exception ; 187 188 193 public void moveAuthenticationSchemeDown(AuthenticationScheme scheme, List <AuthenticationScheme> schemes) throws Exception ; 194 195 199 public void deleteAuthenticationSchemeSequence(int id) throws Exception ; 200 201 } | Popular Tags |