KEYCLOAK-12203 Remove unused constants from module "saml-core"

This commit is contained in:
Andrei Arlou 2019-11-22 21:58:55 +03:00 committed by Hynek Mlnařík
parent 97d2ea8317
commit 6ee6001f39
4 changed files with 0 additions and 67 deletions

View file

@ -28,8 +28,6 @@ public interface ErrorCodes {
String AUDIT_MANAGER_NULL = "PL00028: Audit Manager Is Not Set";
String AUTHENTICATOR_DOES_NOT_HANDLE_ENC = "PL00027: Authenticator does not handle encryption";
String AUTHN_REQUEST_ID_VERIFICATION_FAILED = "PL00104:Authn Request ID verification failed:";
String CLASS_NOT_LOADED = "PL00085: Class Not Loaded:";
@ -40,8 +38,6 @@ public interface ErrorCodes {
String DOM_MISSING_ELEMENT = "PL00099: Missing Element:";
String ENCRYPTION_PROCESS_FAILURE = "PL00101: Encryption Process Failure:";
String EXPIRED_ASSERTION = "PL00079: Assertion has expired:";
String EXPECTED_XSI = "PL00072: Parser: Expected xsi:type";
@ -60,14 +56,8 @@ public interface ErrorCodes {
String IDP_AUTH_FAILED = "PL00015: IDP Authentication Failed:";
String IDP_WEBBROWSER_VALVE_ALREADY_STARTED = "PL00021: IDPWebBrowserSSOValve already Started";
String IDP_WEBBROWSER_VALVE_CONF_FILE_MISSING = "PL00017: Configuration File missing:";
String IDP_WEBBROWSER_VALVE_NOT_STARTED = "PL00024: IDPWebBrowserSSOValve NotStarted";
String ILLEGAL_METHOD_CALLED = "PL00020: Illegal Method Called";
String INVALID_ASSERTION = "PL00080: Invalid Assertion:";
String INVALID_DIGITAL_SIGNATURE = "PL00009: Invalid Digital Signature:";
@ -96,12 +86,8 @@ public interface ErrorCodes {
String NULL_ARGUMENT = "PL00078: Null Parameter:";
String NULL_ASSERTION = "PL00054: Assertion is null";
String NULL_ISSUE_INSTANT = "PL00088: Null IssueInstant";
String NULL_INPUT_STREAM = "PL00060: Input Stream is null";
String NULL_START_ELEMENT = "PL00068: Parser : Start Element is null";
String NULL_VALUE = "PL00092: Null Value:";
@ -120,10 +106,6 @@ public interface ErrorCodes {
String SAML2STSLM_CONF_FILE_MISSING = "PL00039: SAML2STSLoginModule: Failed to validate assertion: STS configuration file not specified";
String SAML2STSLM_UNABLE_DECODE_PWD = "PL00047: SAML2STSLoginModule: Unable to decode password:";
String SERVICE_PROVIDER_CONF_FILE_MISSING = "PL00025: Service Provider:: Configuration File missing:";
String SERVICE_PROVIDER_NOT_CATALINA_RESPONSE = "PL00026: Response was not of type catalina response";
String SERVICE_PROVIDER_SERVER_EXCEPTION = "PL00032: Service Provider :: Server Exception";
@ -134,8 +116,6 @@ public interface ErrorCodes {
String STS_CLIENT_PUBLIC_KEY_ERROR = "PL00008: Unable to locate client public key";
String STS_CONFIGURATION_NOT_SET = "PL00014: Configuration is not set";
String STS_CONFIGURATION_FILE_PARSING_ERROR = "PL00005: Error parsing the configuration file:";
String STS_CONFIGURATION_EXCEPTION = "PL00002: Encountered configuration exception:";
@ -198,10 +178,4 @@ public interface ErrorCodes {
String WRONG_TYPE = "PL00095: Wrong type:";
String SOAP_MESSAGE_DUMP_ERROR = "PL00104: Error while dumping SOAP message:";
String LOCAL_VALIDATION_SEC_DOMAIN_MUST_BE_SPECIFIED = "PL00105: When using local validation 'localValidationSecurityDomain' must be specified.";
String COMPRESSION_ENABLED_SAML_CRED = "When compression is enabled, received credential should be SamlCredential, but got ";
}

View file

@ -24,29 +24,6 @@ package org.keycloak.saml.processing.core.constants;
*/
public interface PicketLinkFederationConstants {
/**
* Flag to indicate whether JAXB Schema Validation is turned on
*/
String JAXB_SCHEMA_VALIDATION = "org.picketlink.jaxb.schema.validation";
String SCHEMA_IDFED = "schema/config/picketlink-fed.xsd";
String SCHEMA_IDFED_HANDLER = "schema/config/picketlink-fed-handler.xsd";
String DSA_SIGNATURE_ALGORITHM = "SHA1withDSA";
String RSA_SIGNATURE_ALGORITHM = "SHA1withRSA";
// File Based Meta data Configuration Constants
String SERIALIZATION_EXTENSION = ".SER";
String FILE_STORE_DIRECTORY = "/picketlink-store";
String IDP_PROPERTIES = "/identityproviders.properties";
String SP_PROPERTIES = "/serviceproviders.properties";
String SALT = "salt";
String ITERATION_COUNT = "iterationCount";
String PBE_ALGORITHM = "PBEwithMD5andDES";
// Prefix to indicate a particular configuration property value is masked
String PASS_MASK_PREFIX = "MASK-";
RuntimePermission RUNTIME_PERMISSION_CORE = new RuntimePermission("org.picketlink.core");
}

View file

@ -48,14 +48,6 @@ public interface SAML11Constants {
String AUTHENTICATION_METHOD = "AuthenticationMethod";
String AUTH_METHOD_PASSWORD = "urn:oasis:names:tc:SAML:1.0:am:password";
String AUTH_METHOD_KERBEROS = "urn:ietf:rfc:1510";
String AUTH_METHOD_SRP = "urn:ietf:rfc:2945";
String AUTH_METHOD_TLS = "urn:ietf:rfc:2246";
String AUTHENTICATION_QUERY = "AuthenticationQuery";
String AUTHENTICATION_STATEMENT = "AuthenticationStatement";
@ -80,10 +72,6 @@ public interface SAML11Constants {
String FORMAT = "Format";
String FORMAT_EMAIL_ADDRESS = "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress";
String FORMAT_UNSPECIFIED = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified";
String IN_RESPONSE_TO = "InResponseTo";
String IP_ADDRESS = "IPAddress";

View file

@ -64,12 +64,6 @@ public class BaseWriter {
protected static String ASSERTION_PREFIX = "saml";
protected static String XACML_SAML_PREFIX = "xacml-saml";
protected static String XACML_SAML_PROTO_PREFIX = "xacml-samlp";
protected static String XSI_PREFIX = "xsi";
protected XMLStreamWriter writer = null;
public BaseWriter(XMLStreamWriter writer) {