Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
L
M
O
R
S
T
U
X
A
aboutToAccess(String)
- Method in class org.pf.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.pf.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.pf.security.authentication
This class implements (nearly) the same methods as java.net.Authenticator.
AbstractAuthenticator()
- Constructor for class org.pf.security.authentication.
AbstractAuthenticator
Initialize the new instance with default values.
addPattern(String)
- Method in class org.pf.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.pf.security.authentication.
LocationCredentials
Adds the given pattern to the URL patterns that can be accessed with this object's authentication credentials.
ALGORITHM_NAME_MD5
- Static variable in interface org.pf.security.crypto.
CryptoConstants
ALGORITHM_NAME_SHA
- Static variable in interface org.pf.security.crypto.
CryptoConstants
ALGORITHM_NAME_SHA_1
- Static variable in interface org.pf.security.crypto.
CryptoConstants
ALGORITHM_NAME_SHA_2_224
- Static variable in interface org.pf.security.crypto.
CryptoConstants
ALGORITHM_NAME_SHA_2_256
- Static variable in interface org.pf.security.crypto.
CryptoConstants
ALGORITHM_NAME_SHA_2_384
- Static variable in interface org.pf.security.crypto.
CryptoConstants
ALGORITHM_NAME_SHA_2_512
- Static variable in interface org.pf.security.crypto.
CryptoConstants
appliesTo(String, String)
- Method in class org.pf.security.authentication.
LocationCredentials
Returns true if the given realm and URL match the settings in this object.
appliesToRealm(String)
- Method in class org.pf.security.authentication.
LocationCredentials
Returns true if the given realm matches the realm name of this object.
appliesToURL(String)
- Method in class org.pf.security.authentication.
LocationCredentials
Returns true if the given URL matches any of the underlying patterns.
asPlainText(String)
- Method in class org.pf.security.crypto.
CryptoUtil
Returns the given string as it is if it does not start with a prefix in curly brackets (e.g.
asString()
- Method in class org.pf.security.crypto.
HashedString
Returns the contents base64 with a curly bracket prefix that defines the used hashing mechanism.
AutoAuthenticationManager
- Class in
org.pf.security.authentication
This manager class is responsible to hold a registry of LocationCredentials objects.
B
base64EncodedWithPrefix(byte[], HashMechanism)
- Method in class org.pf.security.crypto.
CryptoUtil
base64HashedUTF8(String, String)
- Method in class org.pf.security.crypto.
CryptoUtil
Returns the given string UTF-8 char encoded, hashed with the specified hashing mechanism (e.g.
C
checkAlgorithm(String)
- Static method in class org.pf.security.crypto.
CheckedHashAlgorithm
Checks whether or not the given algorithm is supported.
CheckedHashAlgorithm
- Class in
org.pf.security.crypto
This is a helper class that represents a hash algorithm that has already been checked if it is supported by the platform.
computeHash(String, CheckedCharsetName)
- Method in class org.pf.security.crypto.
CheckedHashAlgorithm
Computes a hash value for the given text using the this hashing algorithm.
computeHash(byte[])
- Method in class org.pf.security.crypto.
CheckedHashAlgorithm
Computes a hash value for the given input data using the this hashing algorithm.
computeHash(byte[], String)
- Method in class org.pf.security.crypto.
CryptoUtil
Computes a hash value for the given input data using the specified hashing algorithm.
computeHash(byte[], CheckedHashAlgorithm)
- Method in class org.pf.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.pf.security.crypto.
CryptoUtil
Computes a hash value for the given text using the specified hashing algorithm.
computeHash(String, CheckedCharsetName, String)
- Method in class org.pf.security.crypto.
CryptoUtil
Computes a hash value for the given text using the specified hashing algorithm.
computeUTF8Hash(String)
- Method in class org.pf.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.pf.security.crypto.
CryptoUtil
Computes a hash value for the given text using UTF-8 character encoding an the specified hashing algorithm.
create(String)
- Static method in class org.pf.security.crypto.
CheckedHashAlgorithm
Creates a new instance based on the given algorithm name.
create(CheckedHashAlgorithm)
- Static method in class org.pf.security.crypto.
HashMechanism
Creates a new instance that represents a particular unsalted hashing mechanism.
create(CheckedHashAlgorithm, boolean)
- Static method in class org.pf.security.crypto.
HashMechanism
Creates a new instance that represents a particular hashing mechanism.
create(String, CheckedHashAlgorithm, boolean)
- Static method in class org.pf.security.crypto.
HashMechanism
Creates a new instance that represents a particular hashing mechanism.
createHashMechanismName(CheckedHashAlgorithm, boolean)
- Static method in class org.pf.security.crypto.
HashMechanism
Returns a name for the hashing mechanism that is defined by the given parameters.
createPrefix(String)
- Static method in class org.pf.security.crypto.
HashMechanism
Returns a prefix for the provided hashing mechanism name.
createSHAhash(String)
- Method in class org.pf.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.pf.security.crypto.
CryptoUtil
Returns the SSHA hash representation of the given string
createSSHAhash(String, byte[])
- Method in class org.pf.security.crypto.
CryptoUtil
Returns the SSHA hash representation (SHA-1 based) of the given string.
CryptoConstants
- Interface in
org.pf.security.crypto
This interface provides various constants useful in cryptology.
CryptoRuntimeException
- Exception in
org.pf.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()
- Constructor for exception org.pf.security.crypto.
CryptoRuntimeException
CryptoRuntimeException(String, Throwable)
- Constructor for exception org.pf.security.crypto.
CryptoRuntimeException
CryptoRuntimeException(String)
- Constructor for exception org.pf.security.crypto.
CryptoRuntimeException
CryptoRuntimeException(Throwable)
- Constructor for exception org.pf.security.crypto.
CryptoRuntimeException
CryptoUtil
- Class in
org.pf.security.crypto
This utility class simplifies hashing passwords and particularly comparison of passwords.
current()
- Static method in class org.pf.security.crypto.
CryptoUtil
Returns the only instance this class supports (design pattern "Singleton")
D
defaultEncrypted(String)
- Method in class org.pf.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.pf.security.crypto.
CheckedHashAlgorithm
Tries to extract the bit length part of the given algorithm name and return it as an integer.
E
ENC_MECHANISM_END
- Static variable in interface org.pf.security.crypto.
CryptoConstants
ENC_MECHANISM_START
- Static variable in interface org.pf.security.crypto.
CryptoConstants
equals(Object)
- Method in class org.pf.security.crypto.
CheckedHashAlgorithm
equals(String, String)
- Method in class org.pf.security.crypto.
CryptoUtil
Compares whether or not the two given strings are equal.
equals(String, String, CheckedCharsetName)
- Method in class org.pf.security.crypto.
CryptoUtil
Compares whether or not the two given strings are equal.
equals(Object)
- Method in class org.pf.security.crypto.
HashMechanism
equalsUTF8(String, String)
- Method in class org.pf.security.crypto.
CryptoUtil
Compares whether or not the two given strings are equal.
F
find(String)
- Static method in class org.pf.security.crypto.
CheckedHashAlgorithm
Looks for a predefined CheckedHashAlgorithm constant with the given algorithm name and returns it.
findHashMechanism(String)
- Static method in class org.pf.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.pf.security.crypto.
CheckedHashAlgorithm
Looks for a predefined CheckedHashAlgorithm constant with the given algorithm name and returns it.
findSaltedHashMechanism(String)
- Static method in class org.pf.security.crypto.
HashMechanism
findUnsaltedHashMechanism(String)
- Static method in class org.pf.security.crypto.
HashMechanism
G
generateSalt(int)
- Method in class org.pf.security.crypto.
CryptoUtil
Generates a random salt with the specified length.
generateSalt20()
- Method in class org.pf.security.crypto.
CryptoUtil
Generates a random salt with the default length of 20.
getAlgorithm()
- Method in class org.pf.security.crypto.
HashMechanism
getAlgorithmName()
- Method in class org.pf.security.crypto.
HashMechanism
getBitLength()
- Method in class org.pf.security.crypto.
CheckedHashAlgorithm
Returns the bit length of this algorithm.
getBitLength()
- Method in class org.pf.security.crypto.
HashMechanism
getByteLength()
- Method in class org.pf.security.crypto.
CheckedHashAlgorithm
Returns the byte length of this algorithm.
getByteLength()
- Method in class org.pf.security.crypto.
HashMechanism
getFallbackAuthenticator()
- Method in class org.pf.security.authentication.
AutoAuthenticationManager
Returns the fallback authenticator which will be called if no credentials can be found in the registered credtentials.
getMessageDigest()
- Method in class org.pf.security.crypto.
CheckedHashAlgorithm
Returns a MessageDigest for the specified algorithm name.
getName()
- Method in class org.pf.security.crypto.
CheckedHashAlgorithm
Returns the uppercase name of the hashing algorithm.
getName()
- Method in class org.pf.security.crypto.
HashMechanism
Returns the name of this mechanism.
getPasswordAuthentication()
- Method in class org.pf.security.authentication.
AbstractAuthenticator
Called when password authorization is needed.
getPasswordAuthentication()
- Method in class org.pf.security.authentication.
LocationCredentials
Returns the password based authentication data.
getPredefinedAlgorithms()
- Static method in class org.pf.security.crypto.
CheckedHashAlgorithm
Returns an array of all CheckedHashAlgorithm constants defined by this class.
getPrefix()
- Method in class org.pf.security.crypto.
CheckedHashAlgorithm
Returns the algorithm as prefix (i.e. surrounded by curly braces).
getPrefix()
- Method in class org.pf.security.crypto.
HashMechanism
getRealm()
- Method in class org.pf.security.authentication.
LocationCredentials
Returns the realm this credentials apply to
getRequestingHost()
- Method in class org.pf.security.authentication.
AbstractAuthenticator
getRequestingPort()
- Method in class org.pf.security.authentication.
AbstractAuthenticator
getRequestingPrompt()
- Method in class org.pf.security.authentication.
AbstractAuthenticator
getRequestingProtocol()
- Method in class org.pf.security.authentication.
AbstractAuthenticator
getRequestingScheme()
- Method in class org.pf.security.authentication.
AbstractAuthenticator
getRequestingSite()
- Method in class org.pf.security.authentication.
AbstractAuthenticator
H
hashCode()
- Method in class org.pf.security.crypto.
CheckedHashAlgorithm
hashCode()
- Method in class org.pf.security.crypto.
HashMechanism
hashed(byte[], HashMechanism)
- Method in class org.pf.security.crypto.
CryptoUtil
Returns the given data hashed with the specified hashing mechanism (e.g.
HashedString
- Class in
org.pf.security.crypto
Container for a SHA hashed strings including salt for SSHA.
HashedString(String)
- Constructor for class org.pf.security.crypto.
HashedString
Initialize the new instance with a hashed string.
HashedString(byte[], String)
- Constructor for class org.pf.security.crypto.
HashedString
HashedString(byte[], HashMechanism)
- Constructor for class org.pf.security.crypto.
HashedString
HashedString(byte[], byte[], String)
- Constructor for class org.pf.security.crypto.
HashedString
HashedString(byte[], byte[], HashMechanism)
- Constructor for class org.pf.security.crypto.
HashedString
hashedUTF8(String, String)
- Method in class org.pf.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.pf.security.crypto.
CryptoUtil
Returns the given string UTF-8 char encoded, hashed with the specified hashing mechanism (e.g.
HashMechanism
- Class in
org.pf.security.crypto
Contains all information about a hashing algorithm.
HashMechanism(String, CheckedHashAlgorithm, boolean)
- Constructor for class org.pf.security.crypto.
HashMechanism
Creates a new instance that represents a particular hashing mechanism.
I
install()
- Static method in class org.pf.security.authentication.
AutoAuthenticationManager
Must be called once, to activate this authentication manager mechanism within the java.net.Authenticator.
instance()
- Static method in class org.pf.security.authentication.
AutoAuthenticationManager
Returns the only instance this class supports (design pattern "Singleton")
isEqual(String)
- Method in class org.pf.security.crypto.
HashedString
Compares the given clear text string with the hashed value.
isEqual(byte[])
- Method in class org.pf.security.crypto.
HashedString
Compares the given plain text string with the hashed string.
isEqualUTF8(String)
- Method in class org.pf.security.crypto.
HashedString
Compares the given clear text string with the hashed value (which was hashed as UTF-8).
isSalted()
- Method in class org.pf.security.crypto.
HashedString
Returns true if the value is salted.
isSalted()
- Method in class org.pf.security.crypto.
HashMechanism
isSupportedAlgorithm(String)
- Static method in class org.pf.security.crypto.
CheckedHashAlgorithm
Returns whether or not the given algorithm is supported.
L
LocationCredentials
- Class in
org.pf.security.authentication
Holds the userId and a password for a collection of URL patterns.
LocationCredentials(String, String)
- Constructor for class org.pf.security.authentication.
LocationCredentials
Initialize the new instance with a userId and corresponding passwords.
LocationCredentials(String, String, String)
- Constructor for class org.pf.security.authentication.
LocationCredentials
Initialize the new instance with a userId and corresponding passwords.
M
MD5
- Static variable in class org.pf.security.crypto.
CheckedHashAlgorithm
The pre-defined constant for the MD hash algorithm.
MD5
- Static variable in class org.pf.security.crypto.
HashMechanism
MD5_NAME
- Static variable in interface org.pf.security.crypto.
CryptoConstants
MD5_PREFIX
- Static variable in interface org.pf.security.crypto.
CryptoConstants
O
org.pf.security.authentication
- package org.pf.security.authentication
Security Authentication Classes
Provides support for automatic authentication when using URL connections.
org.pf.security.crypto
- package org.pf.security.crypto
R
register(String, LocationCredentials)
- Method in class org.pf.security.authentication.
AutoAuthenticationManager
Registers the given location credentials under the specified id.
remove(String)
- Method in class org.pf.security.authentication.
AutoAuthenticationManager
Removes the location credentials registered under the specified key from the registry.
reset()
- Method in class org.pf.security.authentication.
AutoAuthenticationManager
Removes all registered credentials and the fallback authenticator.
S
SALTED_MD5
- Static variable in class org.pf.security.crypto.
HashMechanism
SALTED_SHA_1
- Static variable in class org.pf.security.crypto.
HashMechanism
SALTED_SHA_2_256
- Static variable in class org.pf.security.crypto.
HashMechanism
SALTED_SHA_2_384
- Static variable in class org.pf.security.crypto.
HashMechanism
SALTED_SHA_2_512
- Static variable in class org.pf.security.crypto.
HashMechanism
setFallbackAuthenticator(AbstractAuthenticator)
- Method in class org.pf.security.authentication.
AutoAuthenticationManager
Sets the fallback authenticator which will be called if no credentials can be found in the registered credtentials.
setRealm(String)
- Method in class org.pf.security.authentication.
LocationCredentials
Sets the realm this credentials apply to
setRequestingHost(String)
- Method in class org.pf.security.authentication.
AbstractAuthenticator
setRequestingPort(int)
- Method in class org.pf.security.authentication.
AbstractAuthenticator
setRequestingPrompt(String)
- Method in class org.pf.security.authentication.
AbstractAuthenticator
setRequestingProtocol(String)
- Method in class org.pf.security.authentication.
AbstractAuthenticator
setRequestingScheme(String)
- Method in class org.pf.security.authentication.
AbstractAuthenticator
setRequestingSite(InetAddress)
- Method in class org.pf.security.authentication.
AbstractAuthenticator
SHA_1
- Static variable in class org.pf.security.crypto.
CheckedHashAlgorithm
The pre-defined constant for the SHA-1 hash algorithm.
SHA_1
- Static variable in class org.pf.security.crypto.
HashMechanism
SHA_1_NAME
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SHA_1_PREFIX
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SHA_2_224_NAME
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SHA_2_224_PREFIX
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SHA_2_256
- Static variable in class org.pf.security.crypto.
CheckedHashAlgorithm
The pre-defined constant for the SHA-256 hash algorithm.
SHA_2_256
- Static variable in class org.pf.security.crypto.
HashMechanism
SHA_2_256_NAME
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SHA_2_256_PREFIX
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SHA_2_384
- Static variable in class org.pf.security.crypto.
CheckedHashAlgorithm
The pre-defined constant for the SHA-384 hash algorithm.
SHA_2_384
- Static variable in class org.pf.security.crypto.
HashMechanism
SHA_2_384_NAME
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SHA_2_384_PREFIX
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SHA_2_512
- Static variable in class org.pf.security.crypto.
CheckedHashAlgorithm
The pre-defined constant for the SHA-512 hash algorithm.
SHA_2_512
- Static variable in class org.pf.security.crypto.
HashMechanism
SHA_2_512_NAME
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SHA_2_512_PREFIX
- Static variable in interface org.pf.security.crypto.
CryptoConstants
shaEncrypted(String)
- Method in class org.pf.security.crypto.
CryptoUtil
Returns the given string SHA encrypted and base64 encoded with a prefix "{SHA}".
SMD5_NAME
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SMD5_PREFIX
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SSHA_1_NAME
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SSHA_1_PREFIX
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SSHA_2_224_NAME
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SSHA_2_224_PREFIX
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SSHA_2_256_NAME
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SSHA_2_256_PREFIX
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SSHA_2_384_NAME
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SSHA_2_384_PREFIX
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SSHA_2_512_NAME
- Static variable in interface org.pf.security.crypto.
CryptoConstants
SSHA_2_512_PREFIX
- Static variable in interface org.pf.security.crypto.
CryptoConstants
sshaEncrypted(String)
- Method in class org.pf.security.crypto.
CryptoUtil
Returns the given string SSHA encrypted and base64 encoded with a prefix "{SSHA}".
sshaEncrypted(String, byte[])
- Method in class org.pf.security.crypto.
CryptoUtil
Returns the given string SSHA encrypted and base64 encoded with a prefix "{SSHA}".
T
toString()
- Method in class org.pf.security.crypto.
CheckedHashAlgorithm
toString()
- Method in class org.pf.security.crypto.
HashedString
toString()
- Method in class org.pf.security.crypto.
HashMechanism
U
uninstall()
- Static method in class org.pf.security.authentication.
AutoAuthenticationManager
Can be called to remove this authentication manager from the java.net.Authenticator.
UNKNOWN_LENGTH
- Static variable in class org.pf.security.crypto.
CheckedHashAlgorithm
X
xor1(String)
- Method in class org.pf.security.crypto.
CryptoUtil
Returns the byte array containing the xor encoded representation of the given input string.
xor1Encrypted(String)
- Method in class org.pf.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
L
M
O
R
S
T
U
X
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2013 Manfred Duchrow Consulting & Software. All Rights Reserved.