Package net.solarnetwork.web.security
Interface AuthorizationCredentialsProvider
- All Known Implementing Classes:
StaticAuthorizationCredentialsProvider
public interface AuthorizationCredentialsProvider
API for a provider of authorization credentials.
- Since:
- 1.16
- Version:
- 1.1
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescriptionGet the authorization identifier.Get the authorization secret.default InstantGet the pre-computed signing key sign date.default byte[]Get a pre-computed signing key.
-
Method Details
-
getAuthorizationId
String getAuthorizationId()Get the authorization identifier.- Returns:
- the authorization identifier
-
getAuthorizationSecret
String getAuthorizationSecret()Get the authorization secret.- Returns:
- the authorization secret
-
getAuthorizationSigningKey
default byte[] getAuthorizationSigningKey()Get a pre-computed signing key.- Returns:
- the pre-computed signing key, signed using the
getAuthorizationSigningDate()date, or null ifgetAuthorizationSecret()should be used - See Also:
-
getAuthorizationSigningDate
Get the pre-computed signing key sign date.- Returns:
- the date used to sign
getAuthorizationSigningKey()if that is non-null
-