public interface ICredentialsRenewer
Provides a way to renew credentials on behalf of a user.
Modifier and Type | Method and Description |
---|---|
void |
prepare(Map conf)
Called when initializing the service.
|
void |
renew(Map<String,String> credentials,
Map topologyConf)
Deprecated.
|
void |
renew(Map<String,String> credentials,
Map<String,Object> topologyConf,
String topologyOwnerPrincipal)
Renew any credentials that need to be renewed.
|
void prepare(Map conf)
Called when initializing the service.
conf
- the storm cluster configuration.void renew(Map<String,String> credentials, Map<String,Object> topologyConf, String topologyOwnerPrincipal)
Renew any credentials that need to be renewed. (Update the credentials if needed)
credentials
- the credentials that may have something to renew.topologyConf
- topology configuration.topologyOwnerPrincipal
- the full principal name of the owner of the topology@Deprecated void renew(Map<String,String> credentials, Map topologyConf)
Renew any credentials that need to be renewed. (Update the credentials if needed) NOTE: THIS WILL BE CALLED THROUGH REFLECTION. So if the newer renew exists it will be called instead, but if it does not exist this will be called. That means that this is binary compatible but not source compatible with older version. To make the compilation work this can become a noop when the new API is implemented.
credentials
- the credentials that may have something to renew.topologyConf
- topology configuration.Copyright © 2022 The Apache Software Foundation. All Rights Reserved.