Package io.etcd.jetcd.auth
Class Permission
- java.lang.Object
-
- io.etcd.jetcd.auth.Permission
-
public class Permission extends java.lang.Objectrepresents a permission over a range of keys.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPermission.Type
-
Constructor Summary
Constructors Constructor Description Permission(Permission.Type permType, ByteSequence key, ByteSequence rangeEnd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteSequencegetKey()Permission.TypegetPermType()Returns the type of Permission: READ, WRITE, READWRITE, or UNRECOGNIZED.ByteSequencegetRangeEnd()
-
-
-
Constructor Detail
-
Permission
public Permission(Permission.Type permType, ByteSequence key, ByteSequence rangeEnd)
-
-
Method Detail
-
getPermType
public Permission.Type getPermType()
Returns the type of Permission: READ, WRITE, READWRITE, or UNRECOGNIZED.- Returns:
- the permission type.
-
getKey
public ByteSequence getKey()
-
getRangeEnd
public ByteSequence getRangeEnd()
-
-