A B C D E F G H I J K L M N O P R S T U V X

A

aboutToAccess(String) - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
This method must be called to activate the authenticator that provides credentials to be able to access the given URL.
aboutToAccess(URL) - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
This method must be called to activate the authenticator that provides credentials to be able to access the given URL.
AbstractAuthenticator - Class in org.pfsw.security.authentication
This class implements (nearly) the same methods as java.net.Authenticator.
AbstractAuthenticator() - Constructor for class org.pfsw.security.authentication.AbstractAuthenticator
Initialize the new instance with default values.
AbstractPKCEGenerator - Class in org.pfsw.security.oauth.pkce
A customizable generic implementation of a PKCEGenerator where subclasses determine what code challenge method to be used and how to generate that data.
AbstractPKCEGenerator(CodeChallengeMethod) - Constructor for class org.pfsw.security.oauth.pkce.AbstractPKCEGenerator
Creates a new instance for the given code challenge method and a default random string generator and true for createBase64EncodedCodeVerifiers.
AbstractPKCEGenerator(CodeChallengeMethod, StringGenerator) - Constructor for class org.pfsw.security.oauth.pkce.AbstractPKCEGenerator
Creates a new instance with the given arguments.
add(X509TrustManager) - Method in class org.pfsw.security.x509.MultiX509TrustManager
Adds the given trust manager if it is not null and not yet contained.
add(X509TrustManager) - Method in class org.pfsw.security.x509.X509TrustManagerBuilder
Adds the given trust manager if it is not null and not yet contained.
addDefaultTrustStore() - Method in class org.pfsw.security.x509.X509TrustManagerBuilder
Add the JRE/JDK default trust store.
addPattern(String) - Method in class org.pfsw.security.authentication.LocationCredentials
Adds the given pattern to the URL patterns that can be accessed with this object's authentication credentials.
addPattern(StringPattern) - Method in class org.pfsw.security.authentication.LocationCredentials
Adds the given pattern to the URL patterns that can be accessed with this object's authentication credentials.
addTrustStore(String, String) - Method in class org.pfsw.security.x509.X509TrustManagerBuilder
Add the given trust store.
addTrustStore(InputStream, String) - Method in class org.pfsw.security.x509.X509TrustManagerBuilder
Add the given trust store.
ALGORITHM_NAME_MD5 - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
ALGORITHM_NAME_SHA - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
ALGORITHM_NAME_SHA_1 - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
ALGORITHM_NAME_SHA_2_224 - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
ALGORITHM_NAME_SHA_2_256 - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
ALGORITHM_NAME_SHA_2_384 - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
ALGORITHM_NAME_SHA_2_512 - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
appliesTo(String, String) - Method in class org.pfsw.security.authentication.LocationCredentials
Returns true if the given realm and URL match the settings in this object.
appliesToRealm(String) - Method in class org.pfsw.security.authentication.LocationCredentials
Returns true if the given realm matches the realm name of this object.
appliesToURL(String) - Method in class org.pfsw.security.authentication.LocationCredentials
Returns true if the given URL matches any of the underlying patterns.
asPlainText(String) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the given string as it is if it does not start with a prefix in curly brackets (e.g.
asSignature() - Method in class org.pfsw.security.SignatureAlgorithm
Returns the signature object or throws an NoSuchAlgorithmException if this signature algorithm is not supported.
asString() - Method in class org.pfsw.security.crypto.HashedString
Returns the contents base64 with a curly bracket prefix that defines the used hashing mechanism.
asString() - Method in enum org.pfsw.security.KeystoreType
 
asString() - Method in enum org.pfsw.security.oauth.pkce.CodeChallengeMethod
 
asString() - Method in class org.pfsw.security.x509.GeneralName
 
asString() - Method in enum org.pfsw.security.x509.X509NameType
 
AUTHENTICATION_SCHEME_BASIC - Static variable in class org.pfsw.security.SecurityUtil
 
AUTHENTICATION_SCHEME_BEARER - Static variable in class org.pfsw.security.SecurityUtil
 
AUTHENTICATION_SCHEME_DIGEST - Static variable in class org.pfsw.security.SecurityUtil
 
AutoAuthenticationManager - Class in org.pfsw.security.authentication
This manager class is responsible to hold a registry of LocationCredentials objects.

B

base64EncodedWithPrefix(byte[], HashMechanism) - Method in class org.pfsw.security.crypto.CryptoUtil
 
base64HashedUTF8(String, String) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the given string UTF-8 char encoded, hashed with the specified hashing mechanism (e.g.
Base64UrlEncodedRandomStringGenerator - Class in org.pfsw.security
A generator for random strings that uses a newly generated random byte sequence and returns it base64url encoded (without padding).
Base64UrlEncodedRandomStringGenerator(int) - Constructor for class org.pfsw.security.Base64UrlEncodedRandomStringGenerator
Creates a new instance that creates new strings based on a ByteSequenceGenerator with the given length for the by sequences.
Base64UrlEncodedRandomStringGenerator(ByteSequenceGenerator) - Constructor for class org.pfsw.security.Base64UrlEncodedRandomStringGenerator
Creates a new instance that creates new strings based on the given ByteSequenceGenerator.
BASIC_CREDENTIALS_SEPARATOR - Static variable in class org.pfsw.security.SecurityUtil
 
build() - Method in class org.pfsw.security.x509.X509TrustManagerBuilder
 

C

CERT_STANDARD_X509 - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
checkAlgorithm(String) - Static method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Checks whether or not the given algorithm is supported.
checkClientTrusted(X509Certificate[], String) - Method in class org.pfsw.security.x509.MultiX509TrustManager
 
CheckedHashAlgorithm - Class in org.pfsw.security.crypto
This is a helper class that represents a hash algorithm that has already been checked if it is supported by the platform.
CheckedHashAlgorithm(String) - Constructor for class org.pfsw.security.crypto.CheckedHashAlgorithm
Creates successfully a checked algorithm object or throws an exception.
checkServerTrusted(X509Certificate[], String) - Method in class org.pfsw.security.x509.MultiX509TrustManager
 
checkWith(X509TrustManager) - Method in interface org.pfsw.security.x509.X509TrustManagerCheck
 
checkWithTrustManagers(X509TrustManagerCheck) - Method in class org.pfsw.security.x509.MultiX509TrustManager
 
clear() - Method in class org.pfsw.security.x509.MultiX509TrustManager
Removes all contained trust managers.
CodeChallengeMethod - Enum in org.pfsw.security.oauth.pkce
Defines the code challenge methods specified by https://tools.ietf.org/html/rfc7636.
computeHash(String, CheckedCharsetName) - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Computes a hash value for the given text using the this hashing algorithm.
computeHash(byte[]) - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Computes a hash value for the given input data using the this hashing algorithm.
computeHash(byte[], String) - Method in class org.pfsw.security.crypto.CryptoUtil
Computes a hash value for the given input data using the specified hashing algorithm.
computeHash(byte[], CheckedHashAlgorithm) - Method in class org.pfsw.security.crypto.CryptoUtil
Computes a hash value for the given input data using the specified hashing algorithm.
computeHash(String, String, String) - Method in class org.pfsw.security.crypto.CryptoUtil
Computes a hash value for the given text using the specified hashing algorithm.
computeHash(String, CheckedCharsetName, String) - Method in class org.pfsw.security.crypto.CryptoUtil
Computes a hash value for the given text using the specified hashing algorithm.
computeUTF8Hash(String) - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Computes a hash value for the given text using the this hashing algorithm and UTF-8 encoding for the text conversion to bytes.
computeUTF8Hash(String, String) - Method in class org.pfsw.security.crypto.CryptoUtil
Computes a hash value for the given text using UTF-8 character encoding an the specified hashing algorithm.
concatArrays(byte[], byte[]) - Method in class org.pfsw.security.crypto.CryptoUtil
 
create(int) - Static method in class org.pfsw.security.Base64UrlEncodedRandomStringGenerator
Creates a new instance that creates new strings based on a ByteSequenceGenerator with the given length for the by sequences.
create(ByteSequenceGenerator) - Static method in class org.pfsw.security.Base64UrlEncodedRandomStringGenerator
Creates a new instance that creates new strings based on the given ByteSequenceGenerator.
create(String) - Static method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Creates a new instance based on the given algorithm name.
create(CheckedHashAlgorithm) - Static method in class org.pfsw.security.crypto.HashMechanism
Creates a new instance that represents a particular unsalted hashing mechanism.
create(CheckedHashAlgorithm, boolean) - Static method in class org.pfsw.security.crypto.HashMechanism
Creates a new instance that represents a particular hashing mechanism.
create(String, CheckedHashAlgorithm, boolean) - Static method in class org.pfsw.security.crypto.HashMechanism
Creates a new instance that represents a particular hashing mechanism.
create() - Static method in class org.pfsw.security.oauth.pkce.PlainPKCEGenerator
Creates a new instance with a default random string generator for new code verifier strings.
create(StringGenerator) - Static method in class org.pfsw.security.oauth.pkce.PlainPKCEGenerator
Creates a new instance with the given random string generator.
create() - Static method in class org.pfsw.security.oauth.pkce.S256PKCEGenerator
Creates a new instance with a default random string generator for new code verifier strings.
create(StringGenerator) - Static method in class org.pfsw.security.oauth.pkce.S256PKCEGenerator
Creates a new instance with the given random string generator.
create(X509NameType, String) - Static method in class org.pfsw.security.x509.GeneralName
 
create(int, String) - Static method in class org.pfsw.security.x509.GeneralName
 
create() - Static method in class org.pfsw.security.x509.X509TrustManagerBuilder
Create a new builder.
createBASICAuthorization(String, String) - Method in class org.pfsw.security.SecurityUtil
Creates the full authorization header value for the HTTP BASIC authentication scheme as defined in RFC-2617.
createBEARERAuthorization(byte[]) - Method in class org.pfsw.security.SecurityUtil
Creates the full authorization header value for the BEARER authentication scheme as defined in RFC-6750.
createBEARERAuthorization(String, Charset) - Method in class org.pfsw.security.SecurityUtil
Creates the full authorization header value for the BEARER authentication scheme as defined in RFC-6750.
createCodeChallenge(String) - Method in class org.pfsw.security.oauth.pkce.AbstractPKCEGenerator
Returns the derived code challenge string for the given code verifier by applying the AbstractPKCEGenerator.getCodeChallengeMethod().
createCodeChallenge(String) - Method in class org.pfsw.security.oauth.pkce.PlainPKCEGenerator
 
createCodeChallenge(String) - Method in class org.pfsw.security.oauth.pkce.S256PKCEGenerator
 
createHashMechanismName(CheckedHashAlgorithm, boolean) - Static method in class org.pfsw.security.crypto.HashMechanism
Returns a name for the hashing mechanism that is defined by the given parameters.
createPrefix(String) - Static method in class org.pfsw.security.crypto.HashMechanism
Returns a prefix for the provided hashing mechanism name.
createSHAhash(String) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the SHA-1 hash representation of the given string in the current platform's character encoding.
createSSHAhash(String) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the SSHA hash representation of the given string
createSSHAhash(String, byte[]) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the SSHA hash representation (SHA-1 based) of the given string.
CryptoConstants - Interface in org.pfsw.security.crypto
This interface provides various constants useful in cryptology.
CryptoRuntimeException - Exception in org.pfsw.security.crypto
A simple runtime exception class that is used to encapsulate checked exceptions in cases where catching exceptions makes no sense or is polluting the code.
CryptoRuntimeException(String, Object...) - Constructor for exception org.pfsw.security.crypto.CryptoRuntimeException
 
CryptoRuntimeException(Throwable, String, Object...) - Constructor for exception org.pfsw.security.crypto.CryptoRuntimeException
 
CryptoUtil - Class in org.pfsw.security.crypto
This utility class simplifies hashing passwords and particularly comparison of passwords.
CryptoUtil() - Constructor for class org.pfsw.security.crypto.CryptoUtil
Initialize the new instance with default values.
CRYPTU - Static variable in class org.pfsw.security.crypto.HashedString
 
current() - Static method in class org.pfsw.security.crypto.CryptoUtil
Returns the only instance this class supports (design pattern "Singleton")
current() - Static method in class org.pfsw.security.SecurityUtil
Returns the only instance this class supports (design pattern "Singleton")

D

decodeBASICCredentials(String, Charset) - Method in class org.pfsw.security.SecurityUtil
Decodes and splits up the value presented by a BASIC authentication header as to RFC-2617.
decodeBASICCredentials(String) - Method in class org.pfsw.security.SecurityUtil
Decodes and splits up the value presented by a BASIC authentication header as to RFC-2617.
decryptString(String) - Method in class org.pfsw.security.crypto.CryptoUtil
 
defaultEncrypted(String) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the given string encrypted with the default algorithm and base64 encoded with a prefix naming the algorithm in curly brackets (e.g.
detectBitLength(String) - Static method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Tries to extract the bit length part of the given algorithm name and return it as an integer.
detectBitLength() - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Tries to derive the bit length from the algorithm's name.

E

ENC_MECHANISM_END - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
ENC_MECHANISM_START - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
encodeBase64(byte[]) - Method in class org.pfsw.security.oauth.pkce.S256PKCEGenerator
This method is responsible for doing a proper base64 URL encoding of the given hash value.
encodeBASICCredentials(String, String) - Method in class org.pfsw.security.SecurityUtil
Encodes the given username and password according to the BASIC authentication scheme specification (RFC-2617).
encodeBASICCredentials(String, String, Charset) - Method in class org.pfsw.security.SecurityUtil
Encodes the given username and password according to the BASIC authentication scheme specification (RFC-2617).
equals(Object) - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
 
equals(String, String) - Method in class org.pfsw.security.crypto.CryptoUtil
Compares whether or not the two given strings are equal.
equals(String, String, CheckedCharsetName) - Method in class org.pfsw.security.crypto.CryptoUtil
Compares whether or not the two given strings are equal.
equals(Object) - Method in class org.pfsw.security.crypto.HashMechanism
 
equals(Object) - Method in class org.pfsw.security.SignatureAlgorithm
 
equalsHashedAgainstEncoded(String, String, CheckedCharsetName) - Method in class org.pfsw.security.crypto.CryptoUtil
 
equalsUTF8(String, String) - Method in class org.pfsw.security.crypto.CryptoUtil
Compares whether or not the two given strings are equal.

F

fillCredentials() - Method in class org.pfsw.security.authentication.LocationCredentials
Subclasses must override this method in order to get the credentials from somewhere and set a PasswordAuthentication object using setCredentials().
fillFallbackAuthenticator() - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 
find(String) - Static method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Looks for a predefined CheckedHashAlgorithm constant with the given algorithm name and returns it.
findByJWAName(String) - Static method in class org.pfsw.security.SignatureAlgorithm
 
findByName(String) - Static method in class org.pfsw.security.SignatureAlgorithm
 
findCredentialsFor(String) - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 
findCredentialsForRealm() - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 
findCredentialsForRealm(String) - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 
findDefaultTrustManager(KeyStore) - Method in class org.pfsw.security.x509.X509TrustManagerBuilder
 
findHashMechanism(String) - Static method in class org.pfsw.security.crypto.HashMechanism
Tries to find a known (i.e. registered constant) hash mechanism for the given type name.
findOrCreate(String) - Static method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Looks for a predefined CheckedHashAlgorithm constant with the given algorithm name and returns it.
findPasswordAuthenticationForRealm() - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 
findSaltedHashMechanism(String) - Static method in class org.pfsw.security.crypto.HashMechanism
 
findUnsaltedHashMechanism(String) - Static method in class org.pfsw.security.crypto.HashMechanism
 

G

GeneralName - Class in org.pfsw.security.x509
 
GeneralName(X509NameType, String) - Constructor for class org.pfsw.security.x509.GeneralName
 
generate() - Method in class org.pfsw.security.oauth.pkce.AbstractPKCEGenerator
 
generate() - Method in interface org.pfsw.security.oauth.pkce.PKCEGenerator
Generates a new random ProofKeyForCodeExchange.
generateRandomCodeVerifier() - Method in class org.pfsw.security.oauth.pkce.AbstractPKCEGenerator
Returns a new random string to be used as code verifier.
generateSalt(int) - Method in class org.pfsw.security.crypto.CryptoUtil
Generates a random salt with the specified length.
generateSalt20() - Method in class org.pfsw.security.crypto.CryptoUtil
Generates a random salt with the default length of 20.
generateString() - Method in class org.pfsw.security.Base64UrlEncodedRandomStringGenerator
 
generateString(int) - Method in class org.pfsw.security.Base64UrlEncodedRandomStringGenerator
 
getAcceptedIssuers() - Method in class org.pfsw.security.x509.MultiX509TrustManager
 
getActiveCredentials() - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 
getAlgorithm() - Method in class org.pfsw.security.crypto.HashMechanism
 
getAlgorithmName() - Method in class org.pfsw.security.crypto.HashMechanism
 
getAsn1Name() - Method in enum org.pfsw.security.x509.X509NameType
 
getBase64Encoder() - Method in class org.pfsw.security.Base64UrlEncodedRandomStringGenerator
 
getBitLength() - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Returns the bit length of this algorithm.
getBitLength() - Method in class org.pfsw.security.crypto.HashMechanism
 
getByteLength() - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Returns the byte length of this algorithm.
getByteLength() - Method in class org.pfsw.security.crypto.HashMechanism
 
getByteSequenceGenerator() - Method in class org.pfsw.security.Base64UrlEncodedRandomStringGenerator
 
getCodeChallenge() - Method in class org.pfsw.security.oauth.pkce.ProofKeyForCodeExchange
Returns the plain text or hashed code challenge string.
getCodeChallengeMethod() - Method in class org.pfsw.security.oauth.pkce.AbstractPKCEGenerator
Returns the code challenge method this generator is using to create the code challenge.
getCodeChallengeMethod() - Method in class org.pfsw.security.oauth.pkce.ProofKeyForCodeExchange
Returns the method that was used to derive the code challenge from the code verifier.
getCodeVerifier() - Method in class org.pfsw.security.oauth.pkce.ProofKeyForCodeExchange
Returns the plain text code verifier string.
getCredentials(String) - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
Returns the location credentials registered under the specified key or null if not found.
getCredentials() - Method in class org.pfsw.security.authentication.LocationCredentials
 
getFallbackAuthenticator() - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
Returns the fallback authenticator which will be called if no credentials can be found in the registered credtentials.
getFingerprintOf(X509Certificate) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the fingerprint (i.e.
getFingerprintOf(X509Certificate, String) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the fingerprint (i.e.
getHashMechanism() - Method in class org.pfsw.security.crypto.HashedString
 
getHashMechanismName() - Method in class org.pfsw.security.crypto.HashMechanism
 
getHashValue() - Method in class org.pfsw.security.crypto.HashedString
Returns the hash value (without appended salt, if any).
getHashValueBase64() - Method in class org.pfsw.security.crypto.HashedString
Returns the hash value (without appended salt, if any) as Base64 encoded string.
getHashWithSaltValue() - Method in class org.pfsw.security.crypto.HashedString
Returns the hash value with appended salt value (if any).
getHashWithSaltValueBase64() - Method in class org.pfsw.security.crypto.HashedString
Returns the hash value with appended salt value (if any) as Base64 encoded string.
getJreTrustManager() - Method in class org.pfsw.security.x509.X509TrustManagerBuilder
 
getJWAName() - Method in class org.pfsw.security.SignatureAlgorithm
Returns the JSON Web Algorithm (JWA) name.
getLocationCredentials() - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 
getLocationPatterns() - Method in class org.pfsw.security.authentication.LocationCredentials
 
getMessageDigest() - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Returns a MessageDigest for the specified algorithm name.
getName() - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Returns the uppercase name of the hashing algorithm.
getName() - Method in class org.pfsw.security.crypto.HashMechanism
Returns the name of this mechanism.
getName() - Method in class org.pfsw.security.SignatureAlgorithm
Returns the signature algorithm name.
getNameType() - Method in class org.pfsw.security.x509.GeneralName
 
getPasswordAuthentication() - Method in class org.pfsw.security.authentication.AbstractAuthenticator
Called when password authorization is needed.
getPasswordAuthentication() - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 
getPasswordAuthentication() - Method in class org.pfsw.security.authentication.LocationCredentials
Returns the password based authentication data.
getPKCEGenerator(CodeChallengeMethod) - Static method in class org.pfsw.security.oauth.pkce.PKCEGeneratorFactory
Returns a PKCEGenerator that supports the given CodeChallengeMethod.
getPredefinedAlgorithms() - Static method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Returns an array of all CheckedHashAlgorithm constants defined by this class.
getPrefix() - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Returns the algorithm as prefix (i.e. surrounded by curly braces).
getPrefix() - Method in class org.pfsw.security.crypto.HashMechanism
 
getRandomStringGenerator() - Method in class org.pfsw.security.oauth.pkce.AbstractPKCEGenerator
Returns the generator for random strings.
getRealm() - Method in class org.pfsw.security.authentication.LocationCredentials
Returns the realm this credentials apply to
getRealmName() - Method in class org.pfsw.security.authentication.LocationCredentials
 
getRequestingHost() - Method in class org.pfsw.security.authentication.AbstractAuthenticator
 
getRequestingPort() - Method in class org.pfsw.security.authentication.AbstractAuthenticator
 
getRequestingPrompt() - Method in class org.pfsw.security.authentication.AbstractAuthenticator
 
getRequestingProtocol() - Method in class org.pfsw.security.authentication.AbstractAuthenticator
 
getRequestingScheme() - Method in class org.pfsw.security.authentication.AbstractAuthenticator
 
getRequestingSite() - Method in class org.pfsw.security.authentication.AbstractAuthenticator
 
getSalt() - Method in class org.pfsw.security.crypto.HashedString
 
getSaltValue() - Method in class org.pfsw.security.crypto.HashedString
Returns the salt that has been used to hash the string or null if no salt was used.
getStrHash() - Method in class org.pfsw.security.crypto.HashedString
 
getStringValue() - Method in enum org.pfsw.security.KeystoreType
 
getSubjectAlternativeNamesFrom(X509Certificate) - Method in class org.pfsw.security.SecurityUtil
 
getTag() - Method in enum org.pfsw.security.x509.X509NameType
 
getTrustManagers() - Method in class org.pfsw.security.x509.MultiX509TrustManager
 
getTrustManagers() - Method in class org.pfsw.security.x509.X509TrustManagerBuilder
 
getUserId() - Method in class org.pfsw.security.authentication.LocationCredentials
 
getValue() - Method in class org.pfsw.security.x509.GeneralName
 

H

handleException(Exception) - Method in class org.pfsw.security.crypto.CryptoUtil
 
hasActiveCredentials() - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 
hashCode() - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
 
hashCode() - Method in class org.pfsw.security.crypto.HashMechanism
 
hashCode() - Method in class org.pfsw.security.SignatureAlgorithm
 
hashed(byte[], HashMechanism) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the given data hashed with the specified hashing mechanism (e.g.
HashedString - Class in org.pfsw.security.crypto
Container for a SHA hashed strings including salt for SSHA.
HashedString(String) - Constructor for class org.pfsw.security.crypto.HashedString
Initialize the new instance with a hashed string.
HashedString(byte[], String) - Constructor for class org.pfsw.security.crypto.HashedString
 
HashedString(byte[], HashMechanism) - Constructor for class org.pfsw.security.crypto.HashedString
 
HashedString(byte[], byte[], String) - Constructor for class org.pfsw.security.crypto.HashedString
 
HashedString(byte[], byte[], HashMechanism) - Constructor for class org.pfsw.security.crypto.HashedString
 
hashedUTF8(String, String) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the given string UTF-8 char encoded, hashed with the specified hashing mechanism (e.g.
hashedUTF8(String, HashMechanism) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the given string UTF-8 char encoded, hashed with the specified hashing mechanism (e.g.
HashMechanism - Class in org.pfsw.security.crypto
Contains all information about a hashing algorithm.
HashMechanism(String, CheckedHashAlgorithm, boolean) - Constructor for class org.pfsw.security.crypto.HashMechanism
Creates a new instance that represents a particular hashing mechanism.
HOST_SUPPORT_VERSION - Static variable in class org.pfsw.security.authentication.AutoAuthenticationManager
 

I

init(String) - Method in class org.pfsw.security.crypto.HashedString
Initialized this HashedString instance from a Base64 encoded hash that is prefixed with an algorithm identifier.
init(byte[], byte[], HashMechanism) - Method in class org.pfsw.security.crypto.HashedString
 
install() - Static method in class org.pfsw.security.authentication.AutoAuthenticationManager
Must be called once, to activate this authentication manager mechanism within the java.net.Authenticator.
instance() - Static method in class org.pfsw.security.authentication.AutoAuthenticationManager
Returns the only instance this class supports (design pattern "Singleton")
instance() - Static method in class org.pfsw.security.oauth.pkce.PlainPKCEGenerator
Returns always the same instance of this class.
instance() - Static method in class org.pfsw.security.oauth.pkce.S256PKCEGenerator
Returns always the same instance of this class.
isBasicHttp() - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 
isEmpty() - Method in class org.pfsw.security.x509.MultiX509TrustManager
Returns true if no trust manager is contained.
isEncrypted(String) - Method in class org.pfsw.security.crypto.CryptoUtil
 
isEqual(String) - Method in class org.pfsw.security.crypto.HashedString
Compares the given clear text string with the hashed value.
isEqual(byte[]) - Method in class org.pfsw.security.crypto.HashedString
Compares the given plain text string with the hashed string.
isEqualUTF8(String) - Method in class org.pfsw.security.crypto.HashedString
Compares the given clear text string with the hashed value (which was hashed as UTF-8).
isHashed(String) - Method in class org.pfsw.security.crypto.CryptoUtil
 
isHashed() - Method in class org.pfsw.security.crypto.HashedString
 
isSalted() - Method in class org.pfsw.security.crypto.HashedString
Returns true if the value is salted.
isSalted() - Method in class org.pfsw.security.crypto.HashMechanism
 
isSupportedAlgorithm(String) - Static method in class org.pfsw.security.crypto.CheckedHashAlgorithm
Returns whether or not the given algorithm is supported.

J

JAVA_VERSION - Static variable in class org.pfsw.security.authentication.AutoAuthenticationManager
 

K

KeystoreType - Enum in org.pfsw.security
 

L

LocationCredentials - Class in org.pfsw.security.authentication
Holds the userId and a password for a collection of URL patterns.
LocationCredentials(String, String) - Constructor for class org.pfsw.security.authentication.LocationCredentials
Initialize the new instance with a userId and corresponding passwords.
LocationCredentials(String, String, String) - Constructor for class org.pfsw.security.authentication.LocationCredentials
Initialize the new instance with a userId and corresponding passwords.

M

MD5 - Static variable in class org.pfsw.security.crypto.CheckedHashAlgorithm
The pre-defined constant for the MD hash algorithm.
MD5 - Static variable in class org.pfsw.security.crypto.HashMechanism
 
MD5_NAME - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
MD5_PREFIX - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
MD5_WITH_RSA - Static variable in class org.pfsw.security.SignatureAlgorithm
 
MultiX509TrustManager - Class in org.pfsw.security.x509
An X509TrustManager that is capable of holding an arbitrary number of other X509TrustManagers and delegating certificate checks to them until a check is successful or finally if none is successful a CertificateException gets thrown.
MultiX509TrustManager() - Constructor for class org.pfsw.security.x509.MultiX509TrustManager
 

N

newProofKey() - Static method in class org.pfsw.security.oauth.pkce.PlainPKCEGenerator
Returns a newly generated proof key.
newProofKey() - Static method in class org.pfsw.security.oauth.pkce.S256PKCEGenerator
Returns a newly generated proof key.

O

obfuscate1(String) - Method in class org.pfsw.security.crypto.CryptoUtil
Encrypts the given string according to IAP1 algorithm
ofTag(int) - Static method in enum org.pfsw.security.x509.X509NameType
 
org.pfsw.security - package org.pfsw.security
 
org.pfsw.security.authentication - package org.pfsw.security.authentication
Security Authentication Classes
Provides support for automatic authentication when using URL connections.
org.pfsw.security.crypto - package org.pfsw.security.crypto
 
org.pfsw.security.oauth.pkce - package org.pfsw.security.oauth.pkce
 
org.pfsw.security.x509 - package org.pfsw.security.x509
 

P

PKCEGenerator - Interface in org.pfsw.security.oauth.pkce
A functional interface for the generation of new random proof key for code exchange according to the specification https://tools.ietf.org/html/rfc7636.
PKCEGeneratorFactory - Class in org.pfsw.security.oauth.pkce
A factory that supports getting a PKCEGenerator implementation for a given CodeChallengeMethod.
PlainPKCEGenerator - Class in org.pfsw.security.oauth.pkce
An RFC-7636 PKCE proof key generator for the "plain" code challenge method.
PlainPKCEGenerator() - Constructor for class org.pfsw.security.oauth.pkce.PlainPKCEGenerator
Creates a new instance with a default random string generator for new code verifier strings.
PlainPKCEGenerator(StringGenerator) - Constructor for class org.pfsw.security.oauth.pkce.PlainPKCEGenerator
Creates a new instance with the given random string generator.
plainText1(String) - Method in class org.pfsw.security.crypto.CryptoUtil
Decrypts the given string which must be IAP1 obfuscated
ProofKeyForCodeExchange - Class in org.pfsw.security.oauth.pkce
Holder of a code verifier and code challenge as specified by RFC-7637 (PKCE).
ProofKeyForCodeExchange(String, String, CodeChallengeMethod) - Constructor for class org.pfsw.security.oauth.pkce.ProofKeyForCodeExchange
 

R

readX509CertificateChainFromPEM(File) - Method in class org.pfsw.security.SecurityUtil
Reads a certificate chain from the given PEM file.
readX509CertificateFromPKCS7(InputStream) - Method in class org.pfsw.security.SecurityUtil
Reads a certificate from the given PKCS#7 stream.
readX509CertificateFromPKCS7(File) - Method in class org.pfsw.security.SecurityUtil
Reads a certificate from the given PKCS#7 file.
readX509CertificatesFromPKCS7(InputStream) - Method in class org.pfsw.security.SecurityUtil
Read all certificates from the given PKCS#7 stream.
register(String, LocationCredentials) - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
Registers the given location credentials under the specified id.
register(SignatureAlgorithm) - Static method in class org.pfsw.security.SignatureAlgorithm
Registers a SignatureAlgorithm for re-use.
remove(String) - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
Removes the location credentials registered under the specified key from the registry.
reset() - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
Removes all registered credentials and the fallback authenticator.

S

S256PKCEGenerator - Class in org.pfsw.security.oauth.pkce
An RFC-7636 PKCE proof key generator for the "S256" code challenge method.
S256PKCEGenerator() - Constructor for class org.pfsw.security.oauth.pkce.S256PKCEGenerator
Creates a new instance with a default random string generator for new code verifier strings.
S256PKCEGenerator(StringGenerator) - Constructor for class org.pfsw.security.oauth.pkce.S256PKCEGenerator
Creates a new instance with the given random string generator.
SALTED_MD5 - Static variable in class org.pfsw.security.crypto.HashMechanism
 
SALTED_SHA_1 - Static variable in class org.pfsw.security.crypto.HashMechanism
 
SALTED_SHA_2_256 - Static variable in class org.pfsw.security.crypto.HashMechanism
 
SALTED_SHA_2_384 - Static variable in class org.pfsw.security.crypto.HashMechanism
 
SALTED_SHA_2_512 - Static variable in class org.pfsw.security.crypto.HashMechanism
 
SECU - Static variable in class org.pfsw.security.SecurityUtil
 
SecurityRuntimeException - Exception in org.pfsw.security
A generic runtime exception for security problems.
SecurityRuntimeException(String, Object...) - Constructor for exception org.pfsw.security.SecurityRuntimeException
 
SecurityRuntimeException(GeneralSecurityException, String, Object...) - Constructor for exception org.pfsw.security.SecurityRuntimeException
 
SecurityRuntimeException(GeneralSecurityException) - Constructor for exception org.pfsw.security.SecurityRuntimeException
 
SecurityUtil - Class in org.pfsw.security
This singleton supports utility methods around various security aspects.
SecurityUtil() - Constructor for class org.pfsw.security.SecurityUtil
 
setActiveCredentials(LocationCredentials) - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 
setAlgorithm(CheckedHashAlgorithm) - Method in class org.pfsw.security.crypto.HashMechanism
 
setAlgorithmName(String) - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
 
setByteLength(int) - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
 
setCredentials(PasswordAuthentication) - Method in class org.pfsw.security.authentication.LocationCredentials
 
setFallbackAuthenticator(AbstractAuthenticator) - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
Sets the fallback authenticator which will be called if no credentials can be found in the registered credtentials.
setHashMechanism(HashMechanism) - Method in class org.pfsw.security.crypto.HashedString
 
setHashMechanismName(String) - Method in class org.pfsw.security.crypto.HashMechanism
 
setIsHashed(boolean) - Method in class org.pfsw.security.crypto.HashedString
 
setIsSalted(boolean) - Method in class org.pfsw.security.crypto.HashMechanism
 
setLocationCredentials(Map<String, LocationCredentials>) - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 
setLocationPatterns(StringPatternCollection) - Method in class org.pfsw.security.authentication.LocationCredentials
 
setPrefix(String) - Method in class org.pfsw.security.crypto.HashMechanism
 
setRealm(String) - Method in class org.pfsw.security.authentication.LocationCredentials
Sets the realm this credentials apply to
setRealmName(String) - Method in class org.pfsw.security.authentication.LocationCredentials
 
setRequestingHost(String) - Method in class org.pfsw.security.authentication.AbstractAuthenticator
 
setRequestingPort(int) - Method in class org.pfsw.security.authentication.AbstractAuthenticator
 
setRequestingPrompt(String) - Method in class org.pfsw.security.authentication.AbstractAuthenticator
 
setRequestingProtocol(String) - Method in class org.pfsw.security.authentication.AbstractAuthenticator
 
setRequestingScheme(String) - Method in class org.pfsw.security.authentication.AbstractAuthenticator
 
setRequestingSite(InetAddress) - Method in class org.pfsw.security.authentication.AbstractAuthenticator
 
setSalt(byte[]) - Method in class org.pfsw.security.crypto.HashedString
 
setStrHash(byte[]) - Method in class org.pfsw.security.crypto.HashedString
 
setUserId(String) - Method in class org.pfsw.security.authentication.LocationCredentials
 
SHA1_WITH_DSA - Static variable in class org.pfsw.security.SignatureAlgorithm
 
SHA1_WITH_ECDSA - Static variable in class org.pfsw.security.SignatureAlgorithm
 
SHA1_WITH_RSA - Static variable in class org.pfsw.security.SignatureAlgorithm
 
SHA256_WITH_ECDSA - Static variable in class org.pfsw.security.SignatureAlgorithm
 
SHA256_WITH_RSA - Static variable in class org.pfsw.security.SignatureAlgorithm
 
SHA384_WITH_ECDSA - Static variable in class org.pfsw.security.SignatureAlgorithm
 
SHA384_WITH_RSA - Static variable in class org.pfsw.security.SignatureAlgorithm
 
SHA512_WITH_ECDSA - Static variable in class org.pfsw.security.SignatureAlgorithm
 
SHA512_WITH_RSA - Static variable in class org.pfsw.security.SignatureAlgorithm
 
SHA_1 - Static variable in class org.pfsw.security.crypto.CheckedHashAlgorithm
The pre-defined constant for the SHA-1 hash algorithm.
SHA_1 - Static variable in class org.pfsw.security.crypto.HashMechanism
 
SHA_1_NAME - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SHA_1_PREFIX - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SHA_2_224_NAME - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SHA_2_224_PREFIX - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SHA_2_256 - Static variable in class org.pfsw.security.crypto.CheckedHashAlgorithm
The pre-defined constant for the SHA-256 hash algorithm.
SHA_2_256 - Static variable in class org.pfsw.security.crypto.HashMechanism
 
SHA_2_256_NAME - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SHA_2_256_PREFIX - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SHA_2_384 - Static variable in class org.pfsw.security.crypto.CheckedHashAlgorithm
The pre-defined constant for the SHA-384 hash algorithm.
SHA_2_384 - Static variable in class org.pfsw.security.crypto.HashMechanism
 
SHA_2_384_NAME - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SHA_2_384_PREFIX - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SHA_2_512 - Static variable in class org.pfsw.security.crypto.CheckedHashAlgorithm
The pre-defined constant for the SHA-512 hash algorithm.
SHA_2_512 - Static variable in class org.pfsw.security.crypto.HashMechanism
 
SHA_2_512_NAME - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SHA_2_512_PREFIX - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
shaEncrypted(String) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the given string SHA encrypted and base64 encoded with a prefix "{SHA}".
SignatureAlgorithm - Class in org.pfsw.security
Each instance of this class represents a signature algorithm.
SignatureAlgorithm(String) - Constructor for class org.pfsw.security.SignatureAlgorithm
Creates the SignatureAlgorithm object for the given name.
SignatureAlgorithm(String, String) - Constructor for class org.pfsw.security.SignatureAlgorithm
Creates the SignatureAlgorithm object for the given names.
SMD5_NAME - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SMD5_PREFIX - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
split(byte[], int) - Method in class org.pfsw.security.crypto.HashedString
 
SSHA_1_NAME - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SSHA_1_PREFIX - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SSHA_2_224_NAME - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SSHA_2_224_PREFIX - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SSHA_2_256_NAME - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SSHA_2_256_PREFIX - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SSHA_2_384_NAME - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SSHA_2_384_PREFIX - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SSHA_2_512_NAME - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
SSHA_2_512_PREFIX - Static variable in interface org.pfsw.security.crypto.CryptoConstants
 
sshaEncrypted(String) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the given string SSHA encrypted and base64 encoded with a prefix "{SSHA}".
sshaEncrypted(String, byte[]) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the given string SSHA encrypted and base64 encoded with a prefix "{SSHA}".
str() - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 
str() - Method in class org.pfsw.security.authentication.LocationCredentials
 
str() - Method in class org.pfsw.security.crypto.CryptoUtil
 
str() - Method in class org.pfsw.security.crypto.HashedString
 
stringToBytes(String) - Method in class org.pfsw.security.crypto.HashedString
Converts the given string to a byte array.
supportsHostNames() - Method in class org.pfsw.security.authentication.AutoAuthenticationManager
 

T

toString() - Method in class org.pfsw.security.Base64UrlEncodedRandomStringGenerator
 
toString() - Method in class org.pfsw.security.crypto.CheckedHashAlgorithm
 
toString() - Method in class org.pfsw.security.crypto.HashedString
 
toString() - Method in class org.pfsw.security.crypto.HashMechanism
 
toString() - Method in enum org.pfsw.security.KeystoreType
 
toString() - Method in class org.pfsw.security.oauth.pkce.AbstractPKCEGenerator
 
toString() - Method in enum org.pfsw.security.oauth.pkce.CodeChallengeMethod
 
toString() - Method in class org.pfsw.security.oauth.pkce.ProofKeyForCodeExchange
 
toString() - Method in class org.pfsw.security.SignatureAlgorithm
 
toString() - Method in class org.pfsw.security.x509.GeneralName
 
toString() - Method in class org.pfsw.security.x509.MultiX509TrustManager
 
toString() - Method in enum org.pfsw.security.x509.X509NameType
 
transform1(byte[], int) - Method in class org.pfsw.security.crypto.CryptoUtil
Does a XOR transformation of each byte in the given byte array using the key specified by the given keyNum.

U

unencoded(String) - Method in class org.pfsw.security.crypto.CryptoUtil
Tries to Base64 decode the given string.
uninstall() - Static method in class org.pfsw.security.authentication.AutoAuthenticationManager
Can be called to remove this authentication manager from the java.net.Authenticator.
UNKNOWN_LENGTH - Static variable in class org.pfsw.security.crypto.CheckedHashAlgorithm
 

V

valueOf(String) - Static method in enum org.pfsw.security.KeystoreType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.pfsw.security.oauth.pkce.CodeChallengeMethod
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.pfsw.security.x509.X509NameType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.pfsw.security.KeystoreType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.pfsw.security.oauth.pkce.CodeChallengeMethod
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.pfsw.security.x509.X509NameType
Returns an array containing the constants of this enum type, in the order they are declared.

X

X509NameType - Enum in org.pfsw.security.x509
Constants for alternative subject and issuer names.
X509TrustManagerBuilder - Class in org.pfsw.security.x509
 
X509TrustManagerBuilder() - Constructor for class org.pfsw.security.x509.X509TrustManagerBuilder
 
X509TrustManagerCheck - Interface in org.pfsw.security.x509
 
xor1(String) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the byte array containing the xor encoded representation of the given input string.
xor1Encrypted(String) - Method in class org.pfsw.security.crypto.CryptoUtil
Returns the given string XOR1 encrypted and base64 encoded with a prefix "{XOR1}".

A B C D E F G H I J K L M N O P R S T U V X