com.helger.security.keystore.EKeyStoreLoadError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ph-security Show documentation
Show all versions of ph-security Show documentation
Special Java 1.8+ Library with security related functionality
/**
* Copyright (C) 2014-2016 Philip Helger (www.helger.com)
* philip[at]helger[dot]com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.helger.security.keystore;
import javax.annotation.Nonnull;
import com.helger.commons.annotation.Nonempty;
import com.helger.commons.id.IHasID;
public enum EKeyStoreLoadError implements IHasID
{
// KeyStore loading
/** No keystore path provided. Parameters: none */
KEYSTORE_NO_PATH ("keystore-no-path"),
/**
* Keystore not existing. Parameters:
*
* - KeyStore path
* - Exception text
*
*/
KEYSTORE_LOAD_ERROR_NON_EXISTING ("keystore-load-error-non-existing"),
/**
* Invalid keystore password. Parameters:
*
* - KeyStore path
* - Exception text
*
*/
KEYSTORE_INVALID_PASSWORD ("keystore-invalid-password"),
/**
* Invalid password or generic error. Parameters:
*
* - KeyStore path
* - Exception text
*
*/
KEYSTORE_LOAD_ERROR_FORMAT_ERROR ("keystore-load-error-format-error"),
// Key loading
/**
* No alias specified. Parameters:
*
* - KeyStore path
*
*/
KEY_NO_ALIAS ("key-no-alias"),
/**
* No password specified. Parameters:
*
* - Alias name
* - KeyStore path
*
*/
KEY_NO_PASSWORD ("key-no-password"),
/**
* Alias does not exist. Parameters:
*
* - Alias name
* - KeyStore path
*
*/
KEY_INVALID_ALIAS ("key-invalid-alias"),
/**
* Key is not of expected type. Parameters:
*
* - Alias name
* - KeyStore path
* - Effective technical type name
*
*/
KEY_INVALID_TYPE ("key-invalid-type"),
/**
* Invalid password for the key. Parameters:
*
* - Alias name
* - KeyStore path
* - Exception message
*
*/
KEY_INVALID_PASSWORD ("key-invalid-password"),
/**
* Generic error loading the key. Parameters:
*
* - Alias name
* - KeyStore path
* - Exception message
*
*/
KEY_LOAD_ERROR ("key-load-error");
private final String m_sID;
private EKeyStoreLoadError (@Nonnull @Nonempty final String sID)
{
m_sID = sID;
}
@Nonnull
@Nonempty
public String getID ()
{
return m_sID;
}
}