aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/http/AesGcmURLStreamHandlerFactory.java
blob: b5edd2f5ac23ac9a5dc50481720417c95a5ab950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package de.pixart.messenger.http;

import java.net.URLStreamHandler;
import java.net.URLStreamHandlerFactory;

public class AesGcmURLStreamHandlerFactory implements URLStreamHandlerFactory {
    @Override
    public URLStreamHandler createURLStreamHandler(String protocol) {
        if (AesGcmURLStreamHandler.PROTOCOL_NAME.equals(protocol)) {
            return new AesGcmURLStreamHandler();
        } else {
            return null;
        }
    }
}