Class Authorisations
- java.lang.Object
-
- uk.gov.gchq.gaffer.commonutil.elementvisibilityutil.Authorisations
-
- All Implemented Interfaces:
Serializable
,Iterable<byte[]>
public class Authorisations extends Object implements Iterable<byte[]>, Serializable
This test is coped from org.apache.accumulo.core.security.Authorizations.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Authorisations()
Authorisations(byte[] authorisations)
Authorisations(String... authorisations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(byte[] auth)
boolean
contains(String auth)
boolean
contains(ArrayByteSequence auth)
boolean
equals(Object o)
List<byte[]>
getAuthorisations()
byte[]
getAuthorisationsArray()
List<ByteBuffer>
getAuthorisationsBB()
int
hashCode()
boolean
isEmpty()
Iterator<byte[]>
iterator()
String
serialise()
int
size()
String
toString()
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
HEADER
public static final String HEADER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Authorisations
public Authorisations()
-
Authorisations
public Authorisations(String... authorisations)
-
Authorisations
public Authorisations(byte[] authorisations)
-
-
Method Detail
-
getAuthorisations
public List<byte[]> getAuthorisations()
-
getAuthorisationsArray
public byte[] getAuthorisationsArray()
-
getAuthorisationsBB
public List<ByteBuffer> getAuthorisationsBB()
-
serialise
public String serialise()
-
contains
public boolean contains(byte[] auth)
-
contains
public boolean contains(ArrayByteSequence auth)
-
contains
public boolean contains(String auth)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
-