Uses of Enum
org.apache.storm.generated.WorkerTokenServiceType
Package
Description
-
Uses of WorkerTokenServiceType in org.apache.storm.cluster
Modifier and TypeMethodDescriptionvoid
IStormClusterState.addPrivateWorkerKey
(WorkerTokenServiceType type, String topologyId, long keyVersion, PrivateWorkerKey key) Store a new version of a private key.void
StormClusterStateImpl.addPrivateWorkerKey
(WorkerTokenServiceType type, String topologyId, long keyVersion, PrivateWorkerKey key) long
IStormClusterState.getNextPrivateWorkerKeyVersion
(WorkerTokenServiceType type, String topologyId) Get the next key version number that should be used for this topology id.long
StormClusterStateImpl.getNextPrivateWorkerKeyVersion
(WorkerTokenServiceType type, String topologyId) IStormClusterState.getPrivateWorkerKey
(WorkerTokenServiceType type, String topologyId, long keyVersion) Get a private key used to validate a token is correct.StormClusterStateImpl.getPrivateWorkerKey
(WorkerTokenServiceType type, String topologyId, long keyVersion) List<org.apache.storm.shade.org.apache.zookeeper.data.ACL>
ClusterStateContext.getZkSecretAcls
(WorkerTokenServiceType type) List<org.apache.storm.shade.org.apache.zookeeper.data.ACL>
DaemonType.getZkSecretAcls
(WorkerTokenServiceType type, Map<String, Object> conf) Get the ACLs to store a secret for a given service.static String
ClusterUtils.secretKeysPath
(WorkerTokenServiceType type) Get the base path where secret keys are stored for a given service.static String
ClusterUtils.secretKeysPath
(WorkerTokenServiceType type, String topologyId) Get the path to secret keys for a specific topology.static String
ClusterUtils.secretKeysPath
(WorkerTokenServiceType type, String topologyId, long version) Get the path to a specific secret key. -
Uses of WorkerTokenServiceType in org.apache.storm.generated
Modifier and TypeMethodDescriptionstatic WorkerTokenServiceType
WorkerTokenServiceType.findByValue
(int value) Find a the enum type by its integer value, as defined in the Thrift IDL.WorkerToken.get_serviceType()
static WorkerTokenServiceType
Returns the enum constant of this type with the specified name.static WorkerTokenServiceType[]
WorkerTokenServiceType.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescriptionvoid
WorkerToken.set_serviceType
(WorkerTokenServiceType serviceType) ModifierConstructorDescriptionWorkerToken
(WorkerTokenServiceType serviceType, ByteBuffer info, ByteBuffer signature) -
Uses of WorkerTokenServiceType in org.apache.storm.security.auth
Modifier and TypeMethodDescriptionThriftConnectionType.getWtType()
Get the corresponding worker token type for this thrift connection.Modifier and TypeMethodDescriptionstatic WorkerToken
ClientAuthUtils.findWorkerToken
(Subject subject, WorkerTokenServiceType type) Find a worker token in a given subject with a given token type.static WorkerToken
ClientAuthUtils.readWorkerToken
(Map<String, String> credentials, WorkerTokenServiceType type) Read a WorkerToken out of credentials for the given type.static String
ClientAuthUtils.workerTokenCredentialsKey
(WorkerTokenServiceType type) Get the key used to store a WorkerToken in the credentials map. -
Uses of WorkerTokenServiceType in org.apache.storm.security.auth.workertoken
Modifier and TypeMethodDescriptionWorkerTokenManager.createOrUpdateTokenFor
(WorkerTokenServiceType serviceType, String user, String topologyId) Create or update an existing key.boolean
WorkerTokenManager.shouldRenewWorkerToken
(Map<String, String> creds, WorkerTokenServiceType type)