
com.okta.sdk.authc.credentials.ClientCredentials Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of okta-sdk-api Show documentation
Show all versions of okta-sdk-api Show documentation
The Okta Java SDK API .jar provides a Java API that your code can use to make calls to the Okta
API. This .jar is the only compile-time dependency within the Okta SDK project that your code should
depend on. Implementations of this API (implementation .jars) should be runtime dependencies only.
/*
* Copyright 2014 Stormpath, Inc.
* Modifications Copyright 2018 Okta, Inc.
*
* 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.okta.sdk.authc.credentials;
/**
* Credentials to be used when authenticating requests to the Okta API server.
* @since 0.5.0
*/
public interface ClientCredentials {
/**
* Returns the client credentials plaintext secret - a very secret, very private value that should never be disclosed to anyone
* other than the actual account holder. The secret value is mostly used for computing HMAC digests, but can also
* be used as a password for password-based key derivation and encryption.
*
* Security Notice
*
* Okta SDKs automatically encrypt this value at rest and in SDK cache to prevent plaintext access. The
* plaintext value is only available by calling this method, which returns the plaintext (unencrypted) value.
* Please use this method with caution and only when necessary to ensure your API users' secrets remain
* secure.
*
* @return the client credentials plaintext secret
*/
T getCredentials();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy