Package com.attivio.sdk.security
Class SecurityUtils
- java.lang.Object
-
- com.attivio.sdk.security.SecurityUtils
-
public class SecurityUtils extends java.lang.Object
Contains utility methods related to security.
-
-
Constructor Summary
Constructors Constructor Description SecurityUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IngestDocument
attachAcl(IngestDocument doc, AttivioAcl acl)
Attaches the ACL to the given document.static IngestDocument
createDeleteDocument(AttivioPrincipalKey principalKey)
Creates a document for deletion of a principal.static IngestDocument
createIngestDocument(AttivioPrincipal principal)
Creates a document for ingestion of a principal.static java.lang.String
getSidString(byte[] sid)
Converts a secure ID passed in as a byte array into a string.
-
-
-
Method Detail
-
attachAcl
public static final IngestDocument attachAcl(IngestDocument doc, AttivioAcl acl)
Attaches the ACL to the given document.- Parameters:
doc
-acl
-
-
createIngestDocument
public static final IngestDocument createIngestDocument(AttivioPrincipal principal)
Creates a document for ingestion of a principal.- Parameters:
principal
- the principal- Returns:
- the document
-
createDeleteDocument
public static final IngestDocument createDeleteDocument(AttivioPrincipalKey principalKey)
Creates a document for deletion of a principal.- Parameters:
principalKey
- the principal key- Returns:
- the document
-
getSidString
public static final java.lang.String getSidString(byte[] sid)
Converts a secure ID passed in as a byte array into a string. Throws IllegalArgumentException if SID is invalid.- Parameters:
sid
- the SID byte array- Returns:
- the SID string
-
-