| | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.logging.Level; |
| | | import java.util.logging.Logger; |
| | | |
| | | /** |
| | | * Eine einfache Implementierung der Schnittstelle Realm, die |
| | |
| | | * @version 1, 03.06.2021 |
| | | */ |
| | | public class SimpleRealm implements Realm { |
| | | |
| | | private static final Logger logger = Logger.getLogger(SimpleRealm.class.getName()); |
| | | |
| | | public static final String LIST_INDICATOR = "="; |
| | | public static final String ROLE_SEPARATOR = ","; |
| | |
| | | try { |
| | | Encoder encoder = new Encoder(); |
| | | String hex = encoder.bytesToHex(encoder.encode(rollen[0])); |
| | | logger.fine(hex); |
| | | //logger.fine(hex); |
| | | } catch (NoSuchAlgorithmException ex) { |
| | | logger.log(Level.SEVERE, null, ex); |
| | | //logger.log(Level.SEVERE, null, ex); |
| | | } |
| | | ArrayList rollenListe = new ArrayList(); |
| | | for(int i = 1; i < rollen.length; i++) { |