Enum Class的使用
org.apache.pulsar.common.policies.data.AuthAction
使用AuthAction的程序包
程序包
说明
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Implementation of policies.
-
org.apache.pulsar.client.admin中AuthAction的使用
返回变量类型为AuthAction的类型的org.apache.pulsar.client.admin中的方法修饰符和类型方法说明Namespaces.getPermissions(String namespace) Get permissions on a namespace.Topics.getPermissions(String topic) Get permissions on a topic.Namespaces.getPermissionsAsync(String namespace) Get permissions on a namespace asynchronously.Topics.getPermissionsAsync(String topic) Get permissions on a topic asynchronously.类型变量类型为AuthAction的org.apache.pulsar.client.admin中的方法参数修饰符和类型方法说明voidTopics.grantPermission(String topic, String role, Set<AuthAction> actions) Grant permission on a topic.Topics.grantPermissionAsync(String topic, String role, Set<AuthAction> actions) Grant permission on a topic asynchronously.voidNamespaces.grantPermissionOnNamespace(String namespace, String role, Set<AuthAction> actions) Grant permission on a namespace.Namespaces.grantPermissionOnNamespaceAsync(String namespace, String role, Set<AuthAction> actions) Grant permission on a namespace asynchronously. -
org.apache.pulsar.common.policies.data中AuthAction的使用
修饰符和类型方法说明static AuthActionReturns the enum constant of this class with the specified name.static AuthAction[]AuthAction.values()Returns an array containing the constants of this enum class, in the order they are declared.返回变量类型为AuthAction的类型的org.apache.pulsar.common.policies.data中的方法类型变量类型为AuthAction的org.apache.pulsar.common.policies.data中的方法参数修饰符和类型方法说明AuthPolicies.Builder.namespaceAuthentication(Map<String, Set<AuthAction>> namespaceAuthentication) AuthPolicies.Builder.topicAuthentication(Map<String, Map<String, Set<AuthAction>>> topicAuthentication)