KEYCLOAK-11984 Remove unused fields and imports from module core
This commit is contained in:
parent
b3d87b52c2
commit
43c0dd01ec
9 changed files with 8 additions and 22 deletions
|
@ -31,6 +31,4 @@ public class JWEConstants {
|
||||||
public static final String A192CBC_HS384 = "A192CBC-HS384";
|
public static final String A192CBC_HS384 = "A192CBC-HS384";
|
||||||
public static final String A256CBC_HS512 = "A256CBC-HS512";
|
public static final String A256CBC_HS512 = "A256CBC-HS512";
|
||||||
public static final String A128GCM = "A128GCM";
|
public static final String A128GCM = "A128GCM";
|
||||||
public static final String A192GCM = "A192GCM";
|
|
||||||
public static final String A256GCM = "A256GCM";
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
|
|
||||||
package org.keycloak.jose.jwk;
|
package org.keycloak.jose.jwk;
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.type.TypeReference;
|
|
||||||
import org.bouncycastle.jce.ECNamedCurveTable;
|
import org.bouncycastle.jce.ECNamedCurveTable;
|
||||||
import org.bouncycastle.jce.spec.ECNamedCurveParameterSpec;
|
import org.bouncycastle.jce.spec.ECNamedCurveParameterSpec;
|
||||||
import org.bouncycastle.jce.spec.ECNamedCurveSpec;
|
import org.bouncycastle.jce.spec.ECNamedCurveSpec;
|
||||||
|
@ -31,15 +30,12 @@ import java.security.PublicKey;
|
||||||
import java.security.spec.ECPoint;
|
import java.security.spec.ECPoint;
|
||||||
import java.security.spec.ECPublicKeySpec;
|
import java.security.spec.ECPublicKeySpec;
|
||||||
import java.security.spec.RSAPublicKeySpec;
|
import java.security.spec.RSAPublicKeySpec;
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a>
|
* @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a>
|
||||||
*/
|
*/
|
||||||
public class JWKParser {
|
public class JWKParser {
|
||||||
|
|
||||||
private static TypeReference<Map<String,String>> typeRef = new TypeReference<Map<String,String>>() {};
|
|
||||||
|
|
||||||
private JWK jwk;
|
private JWK jwk;
|
||||||
|
|
||||||
private JWKParser() {
|
private JWKParser() {
|
||||||
|
|
|
@ -20,7 +20,6 @@ package org.keycloak.jose.jwk;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import org.keycloak.common.util.PemUtils;
|
import org.keycloak.common.util.PemUtils;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -29,29 +29,29 @@ public interface AdapterHttpClientConfig {
|
||||||
/**
|
/**
|
||||||
* Returns truststore filename.
|
* Returns truststore filename.
|
||||||
*/
|
*/
|
||||||
public String getTruststore();
|
String getTruststore();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns truststore password.
|
* Returns truststore password.
|
||||||
*/
|
*/
|
||||||
public String getTruststorePassword();
|
String getTruststorePassword();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns keystore with client keys.
|
* Returns keystore with client keys.
|
||||||
*/
|
*/
|
||||||
public String getClientKeystore();
|
String getClientKeystore();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns keystore password.
|
* Returns keystore password.
|
||||||
*/
|
*/
|
||||||
public String getClientKeystorePassword();
|
String getClientKeystorePassword();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns boolean flag whether any hostname verification is done on the server's
|
* Returns boolean flag whether any hostname verification is done on the server's
|
||||||
* certificate, {@code true} means that verification is not done.
|
* certificate, {@code true} means that verification is not done.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean isAllowAnyHostname();
|
boolean isAllowAnyHostname();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns boolean flag whether any trust management and hostname verification is done.
|
* Returns boolean flag whether any trust management and hostname verification is done.
|
||||||
|
@ -60,16 +60,16 @@ public interface AdapterHttpClientConfig {
|
||||||
* if you cannot or do not want to verify the identity of the
|
* if you cannot or do not want to verify the identity of the
|
||||||
* host you are communicating with.
|
* host you are communicating with.
|
||||||
*/
|
*/
|
||||||
public boolean isDisableTrustManager();
|
boolean isDisableTrustManager();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns size of connection pool.
|
* Returns size of connection pool.
|
||||||
*/
|
*/
|
||||||
public int getConnectionPoolSize();
|
int getConnectionPoolSize();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns URL of HTTP proxy.
|
* Returns URL of HTTP proxy.
|
||||||
*/
|
*/
|
||||||
public String getProxyUrl();
|
String getProxyUrl();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,6 @@ import org.keycloak.common.util.MultivaluedHashMap;
|
||||||
public class CredentialRepresentation {
|
public class CredentialRepresentation {
|
||||||
public static final String SECRET = "secret";
|
public static final String SECRET = "secret";
|
||||||
public static final String PASSWORD = "password";
|
public static final String PASSWORD = "password";
|
||||||
public static final String PASSWORD_TOKEN = "password-token";
|
|
||||||
public static final String TOTP = "totp";
|
public static final String TOTP = "totp";
|
||||||
public static final String HOTP = "hotp";
|
public static final String HOTP = "hotp";
|
||||||
public static final String CLIENT_CERT = "cert";
|
public static final String CLIENT_CERT = "cert";
|
||||||
|
|
|
@ -19,7 +19,6 @@ package org.keycloak.representations.idm;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a>
|
* @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a>
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
package org.keycloak.representations.idm;
|
package org.keycloak.representations.idm;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,7 @@ package org.keycloak.representations.idm.authorization;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
import org.keycloak.TokenIdGenerator;
|
import org.keycloak.TokenIdGenerator;
|
||||||
import org.keycloak.json.StringListMapDeserializer;
|
import org.keycloak.json.StringListMapDeserializer;
|
||||||
|
|
|
@ -23,8 +23,6 @@ import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.keycloak.representations.idm.authorization.ResourceRepresentation;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author <a href="mailto:psilva@redhat.com">Pedro Igor</a>
|
* @author <a href="mailto:psilva@redhat.com">Pedro Igor</a>
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue