Package com.okta.sdk.resource.model
Class PasswordCredentialHash
java.lang.Object
com.okta.sdk.resource.model.PasswordCredentialHash
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T08:35:59.300824-05:00[America/Chicago]",
comments="Generator version: 7.8.0")
public class PasswordCredentialHash
extends Object
implements Serializable
Specifies a hashed password to import into Okta. This allows an existing password to be imported into Okta directly
from some other store. Okta supports the BCRYPT, SHA-512, SHA-256, SHA-1, MD5, and PBKDF2 hash functions for password
import. A hashed password may be specified in a Password object when creating or updating a user, but not for other
operations. See [Create User with Imported Hashed
Password](https://developer.okta.com/docs/reference/api/users/#create-user-with-imported-hashed-password) for
information on using this object when creating a user. When updating a User with a hashed password, the User must be
in the `STAGED` status.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionalgorithm
(PasswordCredentialHashAlgorithm algorithm) digestAlgorithm
(DigestAlgorithm digestAlgorithm) boolean
Get algorithmGet digestAlgorithmThe number of iterations used when hashing passwords using PBKDF2.Size of the derived key in bytes.getSalt()
Only required for salted hashes.Specifies whether salt was pre- or postfixed to the password before hashing.getValue()
For SHA-512, SHA-256, SHA-1, MD5, and PBKDF2, this is the actual base64-encoded hash of the password (and salt, if used).Governs the strength of the hash and the time required to compute it.int
hashCode()
iterationCount
(Integer iterationCount) void
setAlgorithm
(PasswordCredentialHashAlgorithm algorithm) void
setDigestAlgorithm
(DigestAlgorithm digestAlgorithm) void
setIterationCount
(Integer iterationCount) void
setKeySize
(Integer keySize) void
void
setSaltOrder
(String saltOrder) void
void
setWorkFactor
(Integer workFactor) toString()
workFactor
(Integer workFactor)
-
Field Details
-
JSON_PROPERTY_ALGORITHM
- See Also:
-
JSON_PROPERTY_DIGEST_ALGORITHM
- See Also:
-
JSON_PROPERTY_ITERATION_COUNT
- See Also:
-
JSON_PROPERTY_KEY_SIZE
- See Also:
-
JSON_PROPERTY_SALT
- See Also:
-
JSON_PROPERTY_SALT_ORDER
- See Also:
-
JSON_PROPERTY_VALUE
- See Also:
-
JSON_PROPERTY_WORK_FACTOR
- See Also:
-
-
Constructor Details
-
PasswordCredentialHash
public PasswordCredentialHash()
-
-
Method Details
-
algorithm
-
getAlgorithm
Get algorithm- Returns:
- algorithm
-
setAlgorithm
-
digestAlgorithm
-
getDigestAlgorithm
Get digestAlgorithm- Returns:
- digestAlgorithm
-
setDigestAlgorithm
-
iterationCount
-
getIterationCount
The number of iterations used when hashing passwords using PBKDF2. Must be >= 4096. Only required for PBKDF2 algorithm.- Returns:
- iterationCount
-
setIterationCount
-
keySize
-
getKeySize
Size of the derived key in bytes. Only required for PBKDF2 algorithm.- Returns:
- keySize
-
setKeySize
-
salt
-
getSalt
Only required for salted hashes. For BCRYPT, this specifies Radix-64 as the encoded salt used to generate the hash, which must be 22 characters long. For other salted hashes, this specifies the Base64-encoded salt used to generate the hash.- Returns:
- salt
-
setSalt
-
saltOrder
-
getSaltOrder
Specifies whether salt was pre- or postfixed to the password before hashing. Only required for salted algorithms.- Returns:
- saltOrder
-
setSaltOrder
-
value
-
getValue
For SHA-512, SHA-256, SHA-1, MD5, and PBKDF2, this is the actual base64-encoded hash of the password (and salt, if used). This is the Base64-encoded `value` of the SHA-512/SHA-256/SHA-1/MD5/PBKDF2 digest that was computed by either pre-fixing or post-fixing the `salt` to the `password`, depending on the `saltOrder`. If a `salt` was not used in the `source` system, then this should just be the Base64-encoded `value` of the password's SHA-512/SHA-256/SHA-1/MD5/PBKDF2 digest. For BCRYPT, this is the actual Radix-64 encoded hashed password.- Returns:
- value
-
setValue
-
workFactor
-
getWorkFactor
Governs the strength of the hash and the time required to compute it. Only required for BCRYPT algorithm. minimum: 1 maximum: 20- Returns:
- workFactor
-
setWorkFactor
-
equals
-
hashCode
public int hashCode() -
toString
-