/** * Validates the given {@link NamespacedEntityId} to be supported by the {@link OwnerStore} * i.e. the entity can be associated with an owner. * Validated the given {@link KerberosPrincipalId} to be valid i.e. it can be used to create a * {@link org.apache.hadoop.security.authentication.util.KerberosName}. * See {@link SecurityUtil#validateKerberosPrincipal(KerberosPrincipalId)} * * @param entityId {@link NamespacedEntityId} to be validated * @param principalId {@link KerberosPrincipalId} to be validated */ protected final void validate(NamespacedEntityId entityId, KerberosPrincipalId principalId) { validate(entityId); SecurityUtil.validateKerberosPrincipal(principalId); }