Package io.pravega.shared.security.auth
Interface Credentials
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
DefaultCredentials
public interface Credentials extends java.io.SerializableThis interface represents the credentials passed to Pravega for authentication and authorizing the access. All implementations must support Java serialization.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAuthenticationToken()Returns the authorization token to be sent to Pravega.java.lang.StringgetAuthenticationType()Returns the authentication type.
-
-
-
Method Detail
-
getAuthenticationType
java.lang.String getAuthenticationType()
Returns the authentication type. Pravega can support multiple authentication types in a single deployment.- Returns:
- the authentication type expected by the these credentials.
-
getAuthenticationToken
java.lang.String getAuthenticationToken()
Returns the authorization token to be sent to Pravega.- Returns:
- A token in token68-compatible format (as defined by RFC 7235).
-
-