Static Public Member Functions | |
static boolean | isNodeKeyName (ContentName name) |
Returns whether the specified name is the name of a node key. | |
static ContentName | nodeKeyName (ContentName nodeName) |
Get the name of the node key for a given content node, if there is one. | |
static ContentName | aclName (ContentName nodeName) |
Get the name of the access control list (ACL) for a given content node. | |
static ContentName | aclPostfix () |
static ContentName | userNamespaceName (ContentName namespace) |
Get the name of the user namespace. | |
static ContentName | userNamespaceName (ContentName userNamespace, String userName) |
Get the name of the namespace for a specified user. | |
static ContentName | groupNamespaceName (ContentName namespace) |
Get the name of the group namespace. | |
static ContentName | groupName (ContentName namespace, String groupFriendlyName) |
Get the name of the namespace for a specified group. | |
static ContentName | groupPublicKeyName (ParameterizedName groupStorage, String groupFriendlyName) |
Get the name of a group public key. | |
static ContentName | groupPublicKeyName (ParameterizedName groupStorage, ContentName groupFullName) |
Get the name of the public key of a group specified by its full name. | |
static ContentName | userPublicKeyName (ParameterizedName userStorage, ContentName userName) |
static ContentName | groupMembershipListName (ParameterizedName groupNamespaceName, String groupFriendlyName) |
Get the name of a group membership list for a specified group. | |
static String | groupNameToFriendlyName (ContentName groupName) |
Get the friendly name of a specified group. | |
static ContentName | groupPrivateKeyDirectory (ContentName groupPublicKeyNameAndVersion) |
Get the name of a group private key key directory (containing the encrypted key blocks). | |
static ContentName | groupPrivateKeyBlockName (ContentName groupPublicKeyNameAndVersion) |
Get the name of the private key block in a group private key directory, without version; useful for checking cache status. | |
static ContentName | groupPointerToParentGroupName (ContentName groupFullName) |
Static Public Attributes | |
static final String | GROUP_PREFIX = "Groups" |
static final byte[] | GROUP_PREFIX_BYTES = ContentName.componentParseNative(GROUP_PREFIX) |
static final String | USER_PREFIX = "Users" |
static final byte[] | USER_PREFIX_BYTES = ContentName.componentParseNative(USER_PREFIX) |
static final String | GROUP_LABEL = "Group" |
static final String | USER_LABEL = "User" |
static final String | GROUP_MEMBERSHIP_LIST_NAME = "MembershipList" |
static final String | GROUP_POINTER_TO_PARENT_GROUP_NAME = "PointerToParentGroup" |
static final String | ACL_NAME = "ACL" |
static final byte[] | ACL_NAME_BYTES = ContentName.componentParseNative(ACL_NAME) |
static final String | NODE_KEY_NAME = "NK" |
static final byte[] | NODE_KEY_NAME_BYTES = ContentName.componentParseNative(NODE_KEY_NAME) |
static final byte[] | USER_PRINCIPAL_PREFIX = ContentName.componentParseNative("p") |
static final byte[] | GROUP_PRINCIPAL_PREFIX = ContentName.componentParseNative("g") |
static final ContentName | ACL_POSTFIX = new ContentName(new byte[][]{ACCESS_CONTROL_MARKER_BYTES, ACL_NAME_BYTES}) |
Classes | |
class | PrincipalInfo |
This class records information about a CCN principal. More... |
For descriptions of data, and how this access control system functions, see the separate CCNx Access Control Specifications Document.
This class specifies how a number of access control elements are named:
static boolean org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile.isNodeKeyName | ( | ContentName | name | ) | [static] |
Returns whether the specified name is the name of a node key.
name | the name |
static ContentName org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile.nodeKeyName | ( | ContentName | nodeName | ) | [static] |
Get the name of the node key for a given content node, if there is one.
This is nodeName/<access marker>="">/NK, with a version then added for a specific node key.
nodeName | the name of the content node |
static ContentName org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile.aclName | ( | ContentName | nodeName | ) | [static] |
static ContentName org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile.userNamespaceName | ( | ContentName | namespace | ) | [static] |
Get the name of the user namespace.
This assumes a top-level namespace, where the group information is stored in namespace/Groups and namespace/Users..
namespace | the top-level name space |
static ContentName org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile.userNamespaceName | ( | ContentName | userNamespace, | |
String | userName | |||
) | [static] |
Get the name of the namespace for a specified user.
userNamespace | the name of the user namespace | |
userName | the user name |
static ContentName org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile.groupNamespaceName | ( | ContentName | namespace | ) | [static] |
Get the name of the group namespace.
This assumes a top-level namespace, where the group information is stored in namespace/Groups and namespace/Users..
namespace | the top-level name space |
static ContentName org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile.groupName | ( | ContentName | namespace, | |
String | groupFriendlyName | |||
) | [static] |
Get the name of the namespace for a specified group.
namespace | the top-level namespace | |
groupFriendlyName | the name of the group |
static ContentName org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile.groupPublicKeyName | ( | ParameterizedName | groupStorage, | |
String | groupFriendlyName | |||
) | [static] |
Get the name of a group public key.
This is the unversioned root. The actual public key is stored at the latest version of this name. The private key and decoding blocks are stored under that version, with the segments of the group public key.
groupNamespaceName | the namespace of the group | |
groupFriendlyName | the name of the group |
static ContentName org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile.groupPublicKeyName | ( | ParameterizedName | groupStorage, | |
ContentName | groupFullName | |||
) | [static] |
Get the name of the public key of a group specified by its full name.
groupFullName | the full name of the group |
static ContentName org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile.groupMembershipListName | ( | ParameterizedName | groupNamespaceName, | |
String | groupFriendlyName | |||
) | [static] |
Get the name of a group membership list for a specified group.
groupNamespaceName | the namespace of the group | |
groupFriendlyName | the name of the group |
static String org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile.groupNameToFriendlyName | ( | ContentName | groupName | ) | [static] |
Get the friendly name of a specified group.
groupName | the full name of the group |
static ContentName org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile.groupPrivateKeyDirectory | ( | ContentName | groupPublicKeyNameAndVersion | ) | [static] |
Get the name of a group private key key directory (containing the encrypted key blocks).
We hang the wrapped private key directly off the public key version.
groupPublicKeyNameAndVersion | the versioned name of the group public key |
static ContentName org.ccnx.ccn.profiles.security.access.group.GroupAccessControlProfile.groupPrivateKeyBlockName | ( | ContentName | groupPublicKeyNameAndVersion | ) | [static] |
Get the name of the private key block in a group private key directory, without version; useful for checking cache status.
groupFullName |