|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.security.Authorizations
public class Authorizations
Field Summary | |
---|---|
static String |
HEADER
|
Constructor Summary | |
---|---|
Authorizations()
Constructs an empty set of authorizations. |
|
Authorizations(byte[] authorizations)
Constructs an authorizations object a serialized form. |
|
Authorizations(Collection<byte[]> authorizations)
A convenience constructor that accepts a collection of string authorizations that have each already been encoded as UTF-8 bytes. |
|
Authorizations(List<ByteBuffer> authorizations)
A convenience constructor that accepts a collection of string authorizations that have each already been encoded as UTF-8 bytes. |
|
Authorizations(String... authorizations)
Constructs an authorizations object from a set of human-readable authorizations. |
Method Summary | |
---|---|
boolean |
contains(byte[] auth)
Checks for the existence of this UTF-8 encoded authorization. |
boolean |
contains(ByteSequence auth)
Checks for the existence of this UTF-8 encoded authorization. |
boolean |
contains(String auth)
Checks for the existence of this authorization. |
boolean |
equals(Object o)
|
List<byte[]> |
getAuthorizations()
Retrieve authorizations as a list of strings that have been encoded as UTF-8 bytes. |
byte[] |
getAuthorizationsArray()
Retrieve a serialized form of the underlying set of authorizations. |
List<ByteBuffer> |
getAuthorizationsBB()
Retrieve authorizations as a list of strings that have been encoded as UTF-8 bytes. |
int |
hashCode()
|
boolean |
isEmpty()
|
Iterator<byte[]> |
iterator()
|
String |
serialize()
Returns a serialized form of these authorizations. |
int |
size()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String HEADER
Constructor Detail |
---|
public Authorizations(Collection<byte[]> authorizations)
Authorizations(String...)
public Authorizations(List<ByteBuffer> authorizations)
Authorizations(String...)
public Authorizations(byte[] authorizations)
authorizations
- a serialized authorizations string produced by getAuthorizationsArray()
or serialize()
(converted to UTF-8 bytes)public Authorizations()
Authorizations(String...)
public Authorizations(String... authorizations)
authorizations
- array of authorizationsMethod Detail |
---|
public byte[] getAuthorizationsArray()
Authorizations(byte[])
public List<byte[]> getAuthorizations()
Authorizations(Collection)
public List<ByteBuffer> getAuthorizationsBB()
Authorizations(List)
public String toString()
toString
in class Object
public boolean contains(byte[] auth)
public boolean contains(ByteSequence auth)
public boolean contains(String auth)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int size()
public boolean isEmpty()
public Iterator<byte[]> iterator()
iterator
in interface Iterable<byte[]>
public String serialize()
Authorizations(byte[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |